Fossil SCM
Disabling Cache-control: no-store, as it made firefox forget about form field contents on back/forward in history. Resolution achieved by a minimal consensus at [http://www.mail-archive.com/[email protected]/msg06314.html|this thread on the mailing list].
Commit
3fac77d7b069402bd51f82bb1783f136e67ad308
Parent
ae64088627dfdb1…
1 file changed
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -325,11 +325,11 @@ | ||
| 325 | 325 | */ |
| 326 | 326 | /*time_t expires = time(0) + atoi(db_config("constant_expires","604800"));*/ |
| 327 | 327 | time_t expires = time(0) + 604800; |
| 328 | 328 | fprintf(g.httpOut, "Expires: %s\r\n", cgi_rfc822_datestamp(expires)); |
| 329 | 329 | }else{ |
| 330 | - fprintf(g.httpOut, "Cache-control: no-cache, no-store\r\n"); | |
| 330 | + fprintf(g.httpOut, "Cache-control: no-cache\r\n"); | |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /* Content intended for logged in users should only be cached in |
| 334 | 334 | ** the browser, not some shared location. |
| 335 | 335 | */ |
| 336 | 336 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -325,11 +325,11 @@ | |
| 325 | */ |
| 326 | /*time_t expires = time(0) + atoi(db_config("constant_expires","604800"));*/ |
| 327 | time_t expires = time(0) + 604800; |
| 328 | fprintf(g.httpOut, "Expires: %s\r\n", cgi_rfc822_datestamp(expires)); |
| 329 | }else{ |
| 330 | fprintf(g.httpOut, "Cache-control: no-cache, no-store\r\n"); |
| 331 | } |
| 332 | |
| 333 | /* Content intended for logged in users should only be cached in |
| 334 | ** the browser, not some shared location. |
| 335 | */ |
| 336 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -325,11 +325,11 @@ | |
| 325 | */ |
| 326 | /*time_t expires = time(0) + atoi(db_config("constant_expires","604800"));*/ |
| 327 | time_t expires = time(0) + 604800; |
| 328 | fprintf(g.httpOut, "Expires: %s\r\n", cgi_rfc822_datestamp(expires)); |
| 329 | }else{ |
| 330 | fprintf(g.httpOut, "Cache-control: no-cache\r\n"); |
| 331 | } |
| 332 | |
| 333 | /* Content intended for logged in users should only be cached in |
| 334 | ** the browser, not some shared location. |
| 335 | */ |
| 336 |