Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix to the IfModifiedSince cache processing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:33fb3a97372f36276904189f3de9a46c719bbabd893151038b94006b06b3e816
User & Date: drh 2018-06-11 10:36:42
Context
2018-06-11
20:36
Disable the time_fudge corrections for check-ins that have mtimes that are modified using a tag. check-in: e08f9c04 user: drh tags: trunk
10:36
Fix to the IfModifiedSince cache processing. check-in: 33fb3a97 user: drh tags: trunk
2018-06-09
16:37
Update secondary mention of SQLite compression ratio to match table check-in: b46141f4 user: andygoth tags: trunk
Changes

Changes to src/etag.c.

145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
  assert( mtime>0 );         /* Only call with a valid mtime */
  iEtagMtime = mtime;

  /* 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. */
  if( file_mtime(g.nameOfExe, ExtFILE)>x ) return;
#endif








|







145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
  assert( mtime>0 );         /* Only call with a valid mtime */
  iEtagMtime = mtime;

  /* 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<mtime ) return;

#if 0  
  /* If the Fossil executable is more recent than If-Modified-Since,
  ** go ahead and regenerate the resource. */
  if( file_mtime(g.nameOfExe, ExtFILE)>x ) return;
#endif