Fossil SCM

Use "no-store" in place of "private" as the cache-control mode. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68].

drh 2009-03-29 22:24 trunk
Commit 5ffc720194fc76a3c913339af5228c692b666791
1 file changed +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -320,11 +320,11 @@
320320
}
321321
322322
/* Content intended for logged in users should only be cached in
323323
** the browser, not some shared location.
324324
*/
325
- fprintf(g.httpOut, "Cache-control: private\r\n");
325
+ fprintf(g.httpOut, "Cache-control: no-store\r\n");
326326
fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
327327
if( strcmp(zContentType,"application/x-fossil")==0 ){
328328
cgi_combine_header_and_body();
329329
blob_compress(&cgiContent[0], &cgiContent[0]);
330330
}
331331
--- src/cgi.c
+++ src/cgi.c
@@ -320,11 +320,11 @@
320 }
321
322 /* Content intended for logged in users should only be cached in
323 ** the browser, not some shared location.
324 */
325 fprintf(g.httpOut, "Cache-control: private\r\n");
326 fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
327 if( strcmp(zContentType,"application/x-fossil")==0 ){
328 cgi_combine_header_and_body();
329 blob_compress(&cgiContent[0], &cgiContent[0]);
330 }
331
--- src/cgi.c
+++ src/cgi.c
@@ -320,11 +320,11 @@
320 }
321
322 /* Content intended for logged in users should only be cached in
323 ** the browser, not some shared location.
324 */
325 fprintf(g.httpOut, "Cache-control: no-store\r\n");
326 fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
327 if( strcmp(zContentType,"application/x-fossil")==0 ){
328 cgi_combine_header_and_body();
329 blob_compress(&cgiContent[0], &cgiContent[0]);
330 }
331

Keyboard Shortcuts

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