Jump to content

problems with deleting browser cache


s0c0

Recommended Posts

My app requires that the browser not cache the page.  This is because each time the user clicks a specific link an xml file is generated which contains some file links and metadata read by a flash application.  But the browser is caching the page and it's caching the flash app or something like that.  When the user re-generates the xml the content within the flash app is not refreshed.  Instead the user must manually clear browser cache.

 

Here is what I have implemented in an attempt to solve the problem:

 

/* prevent browser cache */
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );

 

I've tried a number of variations with this, but it is still caching whats in the flash player.  The html tables are redrawn with fresh mysql table content, but thats it.  Was I clear?  I hope so!  I'd like to get this solved.  Thanks for reading.

 

I have full access to the system so if there is an apache2 directive or php5.ini parameter just let me know.

Link to comment
https://forums.phpfreaks.com/topic/39584-problems-with-deleting-browser-cache/
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.