Jump to content

Caching


tibberous

Recommended Posts

I want to make it so that browsers will cache the images, scripts and css pages from my site, but not the php pages themselves. Is all I need to do add this?

 

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');

header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', FALSE);

header('Pragma: no-cache');

Link to comment
https://forums.phpfreaks.com/topic/76416-caching/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.