Make WordPress Core

Changeset 1983


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

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r1964 r1983  
    55auth_redirect();
    66
     7header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
     8header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
     9header('Cache-Control: no-cache, must-revalidate, max-age=0');
     10header('Pragma: no-cache');
    711
    812$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
  • trunk/wp-comments-post.php

    r1974 r1983  
    3939header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
    4040header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    41 header('Cache-Control: no-cache, must-revalidate');
     41header('Cache-Control: no-cache, must-revalidate, max-age=0');
    4242header('Pragma: no-cache');
    4343
  • 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   
  • trunk/wp-login.php

    r1979 r1983  
    2020    setcookie('wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);
    2121    setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);
     22    header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
     23    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
     24    header('Cache-Control: no-cache, must-revalidate, max-age=0');
     25    header('Pragma: no-cache');
    2226
    2327    header('Location: wp-login.php');
Note: See TracChangeset for help on using the changeset viewer.