Fossil SCM

Fix to the IfModifiedSince cache processing.

drh 2018-06-11 10:36 trunk
Commit 33fb3a97372f36276904189f3de9a46c719bbabd893151038b94006b06b3e816
1 file changed +1 -1
+1 -1
--- src/etag.c
+++ src/etag.c
@@ -147,11 +147,11 @@
147147
148148
/* Check to see the If-Modified-Since constraint is satisfied */
149149
zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE");
150150
if( zIfModifiedSince==0 ) return;
151151
x = cgi_rfc822_parsedate(zIfModifiedSince);
152
- if( x<=0 || x>mtime ) return;
152
+ if( x<mtime ) return;
153153
154154
#if 0
155155
/* If the Fossil executable is more recent than If-Modified-Since,
156156
** go ahead and regenerate the resource. */
157157
if( file_mtime(g.nameOfExe, ExtFILE)>x ) return;
158158
--- src/etag.c
+++ src/etag.c
@@ -147,11 +147,11 @@
147
148 /* Check to see the If-Modified-Since constraint is satisfied */
149 zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE");
150 if( zIfModifiedSince==0 ) return;
151 x = cgi_rfc822_parsedate(zIfModifiedSince);
152 if( x<=0 || x>mtime ) return;
153
154 #if 0
155 /* If the Fossil executable is more recent than If-Modified-Since,
156 ** go ahead and regenerate the resource. */
157 if( file_mtime(g.nameOfExe, ExtFILE)>x ) return;
158
--- src/etag.c
+++ src/etag.c
@@ -147,11 +147,11 @@
147
148 /* Check to see the If-Modified-Since constraint is satisfied */
149 zIfModifiedSince = P("HTTP_IF_MODIFIED_SINCE");
150 if( zIfModifiedSince==0 ) return;
151 x = cgi_rfc822_parsedate(zIfModifiedSince);
152 if( x<mtime ) return;
153
154 #if 0
155 /* If the Fossil executable is more recent than If-Modified-Since,
156 ** go ahead and regenerate the resource. */
157 if( file_mtime(g.nameOfExe, ExtFILE)>x ) return;
158

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button