Make WordPress Core


Ignore:
Timestamp:
12/19/2004 06:43:45 PM (22 years ago)
Author:
saxmatt
Message:

Don't cache. No, really. Hat tip: Kimmo Suominen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1979 r1983  
    15611561        if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) &&
    15621562        !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true)) ||
    1563          (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
    1564                 header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
     1563        (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
     1564                header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
    15651565                header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    1566                 header('Cache-Control: no-cache, must-revalidate');
     1566                header('Cache-Control: no-cache, must-revalidate, max-age=0');
    15671567                header('Pragma: no-cache');
    15681568       
Note: See TracChangeset for help on using the changeset viewer.