Fossil SCM

Add cache-control: no-cache to the server reply header. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68]

drh 2009-03-31 17:33 trunk
Commit c3a30a6b80e2157db5f3ae526db989367f412117
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: no-store\r\n");
325
+ fprintf(g.httpOut, "Cache-control: no-cache, 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: 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
--- 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-cache, 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