Fossil

Check-in [04190488]
Login

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 | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0419048804762787ac7b44cb5ad089942c543b41fc014ba9791ec85226654e6b
User & Date: drh 2018-05-11 15:02:34
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/etag.c.

   147    147   
   148    148     /* Check to see the If-Modified-Since constraint is satisfied */
   149    149     zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE");
   150    150     if( zIfModifiedSince==0 ) return;
   151    151     x = cgi_rfc822_parsedate(zIfModifiedSince);
   152    152     if( x<=0 || x>mtime ) return;
   153    153   
          154  +#if 0  
   154    155     /* If the Fossil executable is more recent than If-Modified-Since,
   155    156     ** go ahead and regenerate the resource. */
   156    157     exeMtime = file_mtime(g.nameOfExe, ExtFILE);
   157    158     if( exeMtime>x ) return;
          159  +#endif
   158    160   
   159    161     /* If we reach this point, it means that the resource has not changed
   160    162     ** and that we should generate a 304 Not Modified reply */
   161    163     cgi_reset_content();
   162    164     cgi_set_status(304, "Not Modified");
   163    165     cgi_reply();
   164    166     fossil_exit(0);