Cache Control

  • dark_lord
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: India-Kolkata

Post 3+ Months Ago

from joebert scary article about faster site, i got scared and even most of my sites pr fall to 0 :x

and i am trying to pull back things, so i started with making things faster

but the problem is

Leverage browser caching

it is showing with page speed everywhere on my sites. how to fix this issue?

i have tried this
Code: [ Select ]
$expires = 60*60*24*5;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
  1. $expires = 60*60*24*5;
  2. header("Pragma: public");
  3. header("Cache-Control: maxage=".$expires);
  4. header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');


but no help?! :?

can anyone help me?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

A recent post by Bigwebmaster is a good start -- programming-forum/cache-forum-t101551.html#p567328

A few Apache modules to read up on are, mod_expires, mod_deflate, and the filter relevant directives.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.