Cache Control

  • dark_lord
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jan 14, 2009
  • Posts: 162
  • Loc: India-Kolkata
  • Status: Offline

Post December 20th, 2009, 11:13 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 20th, 2009, 11:13 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post December 21st, 2009, 12:38 am

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.
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 113 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.