ilikephp Posted January 18, 2010 Share Posted January 18, 2010 Hi, is there a script to force my website to re-cache each time it is opened? Thx... Link to comment https://forums.phpfreaks.com/topic/188931-re-cache/ Share on other sites More sharing options...
taquitosensei Posted January 18, 2010 Share Posted January 18, 2010 I think what you're really after is not caching at all put this in your <head></head> <head> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> </head> then do another head section after </body> with the same content </body> <head> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> </head> Link to comment https://forums.phpfreaks.com/topic/188931-re-cache/#findComment-997579 Share on other sites More sharing options...
ilikephp Posted January 18, 2010 Author Share Posted January 18, 2010 thx for your help, I will try it, is there a way to add it in css style? Link to comment https://forums.phpfreaks.com/topic/188931-re-cache/#findComment-997589 Share on other sites More sharing options...
taquitosensei Posted January 18, 2010 Share Posted January 18, 2010 no because it's not a style. You're telling the browser not to cache content. Link to comment https://forums.phpfreaks.com/topic/188931-re-cache/#findComment-997595 Share on other sites More sharing options...
ilikephp Posted January 19, 2010 Author Share Posted January 19, 2010 I tried to put the codes but I am still viewing the old view that is on the cache :S I put the codes in index.php and in the main.php pages Is there more help plz? Link to comment https://forums.phpfreaks.com/topic/188931-re-cache/#findComment-998239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.