Fossil SCM
Fix to the IfModifiedSince cache processing.
Commit
33fb3a97372f36276904189f3de9a46c719bbabd893151038b94006b06b3e816
Parent
b46141f4581dbf3…
1 file changed
+1
-1
+1
-1
| --- src/etag.c | ||
| +++ src/etag.c | ||
| @@ -147,11 +147,11 @@ | ||
| 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 | - if( x<=0 || x>mtime ) return; | |
| 152 | + if( x<mtime ) return; | |
| 153 | 153 | |
| 154 | 154 | #if 0 |
| 155 | 155 | /* If the Fossil executable is more recent than If-Modified-Since, |
| 156 | 156 | ** go ahead and regenerate the resource. */ |
| 157 | 157 | if( file_mtime(g.nameOfExe, ExtFILE)>x ) return; |
| 158 | 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<=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 |