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... Quote Link to comment 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> Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.