Fossil SCM
Enclose ETag header values in double quotes. Suggested in [forum:/forumpost/70bacf5cf8|Forum Post 70bacf5cf8].
Commit
ad51cc61c6d2ca07f4e3e885e559f219c5af3e01c39345df621177ecdccc5d9d
Parent
ce65d09a56913e3…
1 file changed
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -505,11 +505,11 @@ | ||
| 505 | 505 | && strcmp(zContentType,"text/html")!=0 |
| 506 | 506 | ){ |
| 507 | 507 | /* Do not cache HTML replies as those will have been generated and |
| 508 | 508 | ** will likely, therefore, contains a nonce and we want that nonce to |
| 509 | 509 | ** be different every time. */ |
| 510 | - blob_appendf(&hdr, "ETag: %s\r\n", etag_tag()); | |
| 510 | + blob_appendf(&hdr, "ETag: \"%s\"\r\n", etag_tag()); | |
| 511 | 511 | blob_appendf(&hdr, "Cache-Control: max-age=%d\r\n", etag_maxage()); |
| 512 | 512 | if( etag_mtime()>0 ){ |
| 513 | 513 | blob_appendf(&hdr, "Last-Modified: %s\r\n", |
| 514 | 514 | cgi_rfc822_datestamp(etag_mtime())); |
| 515 | 515 | } |
| 516 | 516 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -505,11 +505,11 @@ | |
| 505 | && strcmp(zContentType,"text/html")!=0 |
| 506 | ){ |
| 507 | /* Do not cache HTML replies as those will have been generated and |
| 508 | ** will likely, therefore, contains a nonce and we want that nonce to |
| 509 | ** be different every time. */ |
| 510 | blob_appendf(&hdr, "ETag: %s\r\n", etag_tag()); |
| 511 | blob_appendf(&hdr, "Cache-Control: max-age=%d\r\n", etag_maxage()); |
| 512 | if( etag_mtime()>0 ){ |
| 513 | blob_appendf(&hdr, "Last-Modified: %s\r\n", |
| 514 | cgi_rfc822_datestamp(etag_mtime())); |
| 515 | } |
| 516 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -505,11 +505,11 @@ | |
| 505 | && strcmp(zContentType,"text/html")!=0 |
| 506 | ){ |
| 507 | /* Do not cache HTML replies as those will have been generated and |
| 508 | ** will likely, therefore, contains a nonce and we want that nonce to |
| 509 | ** be different every time. */ |
| 510 | blob_appendf(&hdr, "ETag: \"%s\"\r\n", etag_tag()); |
| 511 | blob_appendf(&hdr, "Cache-Control: max-age=%d\r\n", etag_maxage()); |
| 512 | if( etag_mtime()>0 ){ |
| 513 | blob_appendf(&hdr, "Last-Modified: %s\r\n", |
| 514 | cgi_rfc822_datestamp(etag_mtime())); |
| 515 | } |
| 516 |