Jump to content

Header Cache


The Little Guy

Recommended Posts

How come if I place this at the top of the page, it doesn't work?

 

header( "Cache-Control: no-store, no-cache, must-revalidate" );
header( "Cache-Control: post-check=0, pre-check=0", false );
header( "Pragma: nocache" );

 

I have a script that rotates images, then saves them, along with the new thumbnail, but when the page that I display the image on reloads, the image thumbnail hasn't change. If i press F5, or ctrl+F, or Refresh, then the thumbnail changes to the new updated image.

 

The above code is on the saves the new rotated image file, and on the page that displays the thumbnail.

 

Link to comment
https://forums.phpfreaks.com/topic/72890-header-cache/
Share on other sites

Nope... That doesn't work either...

 

Here is what I have now:

 

<?php
header( "Cache-Control: no-store, no-cache, must-revalidate" );
header( "Cache-Control: post-check=0, pre-check=0", false );
header( "Pragma: nocache" );
header("Cache: no-cahce");
header("Expires: Thu, 01 Dec 1994 16:00:00 GMT");
?>

 

Does that look right?

Link to comment
https://forums.phpfreaks.com/topic/72890-header-cache/#findComment-368036
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.