Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Honor the If-Modified-Since header even if the Fossil executable is more recent. Assume that any changes in the Fossil executable will make minimal difference in the output. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0419048804762787ac7b44cb5ad08994 |
User & Date: | drh 2018-05-11 15:02:34.142 |
Context
2018-05-14
| ||
00:41 | Update the built-in SQLite and SQLite shell to the latest 3.24.0 alpha version. ... (check-in: a09b33d5 user: drh tags: trunk) | |
2018-05-11
| ||
15:02 | Honor the If-Modified-Since header even if the Fossil executable is more recent. Assume that any changes in the Fossil executable will make minimal difference in the output. ... (check-in: 04190488 user: drh tags: trunk) | |
2018-05-05
| ||
19:10 | If the banner uses "filename" as one word, the title ought to too. ... (check-in: c0ed9506 user: drh tags: trunk) | |
Changes
Changes to src/etag.c.
︙ | ︙ | |||
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | /* Check to see the If-Modified-Since constraint is satisfied */ zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE"); if( zIfModifiedSince==0 ) return; x = cgi_rfc822_parsedate(zIfModifiedSince); if( x<=0 || x>mtime ) return; /* If the Fossil executable is more recent than If-Modified-Since, ** go ahead and regenerate the resource. */ exeMtime = file_mtime(g.nameOfExe, ExtFILE); if( exeMtime>x ) return; /* If we reach this point, it means that the resource has not changed ** and that we should generate a 304 Not Modified reply */ cgi_reset_content(); cgi_set_status(304, "Not Modified"); cgi_reply(); fossil_exit(0); | > > | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | /* Check to see the If-Modified-Since constraint is satisfied */ zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE"); if( zIfModifiedSince==0 ) return; x = cgi_rfc822_parsedate(zIfModifiedSince); if( x<=0 || x>mtime ) return; #if 0 /* If the Fossil executable is more recent than If-Modified-Since, ** go ahead and regenerate the resource. */ exeMtime = file_mtime(g.nameOfExe, ExtFILE); if( exeMtime>x ) return; #endif /* If we reach this point, it means that the resource has not changed ** and that we should generate a 304 Not Modified reply */ cgi_reset_content(); cgi_set_status(304, "Not Modified"); cgi_reply(); fossil_exit(0); |
︙ | ︙ |