Fossil

Check-in [c3a30a6b80]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add cache-control: no-cache to the server reply header. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68]
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c3a30a6b80e2157db5f3ae526db989367f412117
User & Date: drh 2009-03-31 17:33:05.000
References
2009-03-31
17:34 Fixed ticket [b465b3bc2c]: Stale pages delivered on Opera browser plus 2 other changes ... (artifact: 4bcfdeeb7b user: drh)
Context
2009-04-11
12:51
Add support for "file:" URLs on push, pull, and sync. ... (check-in: 945ecd1a8b user: drh tags: trunk)
2009-04-07
04:04
typo ... (check-in: 434c350a45 user: bch tags: trunk)
2009-03-31
17:33
Add cache-control: no-cache to the server reply header. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68] ... (check-in: c3a30a6b80 user: drh tags: trunk)
16:47
Add the new "reader" role, analogous to "developer". ... (check-in: 355ee47555 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
    fprintf(g.httpOut, "Expires: %s\r\n", zDate );
    if( zDate[0] ) free( zDate );
  }

  /* Content intended for logged in users should only be cached in
  ** the browser, not some shared location.
  */
  fprintf(g.httpOut, "Cache-control: no-store\r\n");
  fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
  if( strcmp(zContentType,"application/x-fossil")==0 ){
    cgi_combine_header_and_body();
    blob_compress(&cgiContent[0], &cgiContent[0]);
  }

  if( iReplyStatus != 304 ) {







|







318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
    fprintf(g.httpOut, "Expires: %s\r\n", zDate );
    if( zDate[0] ) free( zDate );
  }

  /* Content intended for logged in users should only be cached in
  ** the browser, not some shared location.
  */
  fprintf(g.httpOut, "Cache-control: no-cache, no-store\r\n");
  fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
  if( strcmp(zContentType,"application/x-fossil")==0 ){
    cgi_combine_header_and_body();
    blob_compress(&cgiContent[0], &cgiContent[0]);
  }

  if( iReplyStatus != 304 ) {