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].

viriketo 2011-10-03 16:34 trunk
Commit 3fac77d7b069402bd51f82bb1783f136e67ad308
1 file changed +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -325,11 +325,11 @@
325325
*/
326326
/*time_t expires = time(0) + atoi(db_config("constant_expires","604800"));*/
327327
time_t expires = time(0) + 604800;
328328
fprintf(g.httpOut, "Expires: %s\r\n", cgi_rfc822_datestamp(expires));
329329
}else{
330
- fprintf(g.httpOut, "Cache-control: no-cache, no-store\r\n");
330
+ fprintf(g.httpOut, "Cache-control: no-cache\r\n");
331331
}
332332
333333
/* Content intended for logged in users should only be cached in
334334
** the browser, not some shared location.
335335
*/
336336
--- 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

Keyboard Shortcuts

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