Slight Modification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spetnik
    Member
    • May 2002
    • 80

    Slight Modification

    I noticed at work, where we are all behind a proxy server, people would get cached versions of my site. This was disturbing because other employees could view private threads. I added this to the dootput function in functions.php right under the global declaration to prevent this:

    PHP Code:
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " gmdate("D, d M Y H:i:s") ." GMT");
    header("Cache-Control: no-cache, must revalidate");
    header("Pragma: no-cache");
    header("Cache-Control: post-check=0, pre-check=0"); 
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...