Jump to content

Can i use PHP to stop browser cache?


poleposters

Recommended Posts

Hi, I'm working on a business directory. My users can upload slides to create a slideshow in an SWF file.

 

However if they upload new slides, the slideshow will not show the changes because the browser instead uses the cached images. Is there a way to work around this??

Link to comment
https://forums.phpfreaks.com/topic/101523-can-i-use-php-to-stop-browser-cache/
Share on other sites

I'm pretty sure its a meta tag that stops caching of images.

 

try adding this into your header

 

<meta http-equiv="Pragma" content="no-cache">

<meta http-equiv="expires" content="0">

 

All it does it stops the browser caching and sets the expire time to 0 so nothings cached.

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.