ENABLE browser caching

  • Unknown's avatar

    how ca i enable browser caching in my wordpress blog?

    sth. like that should work, but where I have to put it to?

    $dauer = 1440; // Minuten
    $exp_gmt = gmdate("D, d M Y H:i:s", time() + $dauer * 60) ." GMT";
    $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) ." GMT";
    header("Expires: " . $exp_gmt);
    header("Last-Modified: " . $mod_gmt);
    header("Cache-Control: public, max-age=" . $dauer * 60);
    header("Cache-Control: pre-check=" . $dauer * 60, FALSE);
    header('Pragma: public');

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The blog you specified at http://www.tobiaskoelligan.de does not appear to be hosted at WordPress.com.

    This support forum is for WordPress.com hosted blogs only. If you have a self-hosted WordPress blog you need to seek help at the WordPress.org forums, not here.

    If you don’t understand the difference, you may find this information helpful.

  • The topic ‘ENABLE browser caching’ is closed to new replies.