Injen
02-02-2012, 07:45 PM
Hi again.
Looking for the best way to solve the CTRL+F5 issue for old visitors when ever i change the website.
I've found some solutions on the web like this one
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
but there's always poor information what it does and how it works, and not to forgett that someone always claims that there's a better way to do it.
Also where i should include the code so it work properly?
Or is it better to use .htaccess to force cache release?
Looking for the best way to solve the CTRL+F5 issue for old visitors when ever i change the website.
I've found some solutions on the web like this one
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
but there's always poor information what it does and how it works, and not to forgett that someone always claims that there's a better way to do it.
Also where i should include the code so it work properly?
Or is it better to use .htaccess to force cache release?