Changeset 2942


Ignore:
Timestamp:
2002-02-04T12:20:59+13:00 (22 years ago)
Author:
sjboddie
Message:

Added some http headers in an attempt to prevent pages output by
Greenstone from being cached. This seems like a good idea since people
are now encouraged to alter the content on their site (building new
collections and altering existing collections). If pages are cached by
their browsers it often appears that things weren't altered as expected.
Not completely sure that the headers I added will work for all browsers
though -- needs some testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r2937 r2942  
    756756  } else if (response == content) {
    757757    // content response
     758
     759    // prevent dynamic content from being cached
     760    contentout << text_t2ascii
     761               << "Expires: 0\n"
     762               << "Cache-Control: no-cache, must-revalidate\n";
    758763
    759764    // use the later of build.cfg and collect.cfg modification times
Note: See TracChangeset for help on using the changeset viewer.