I have once wrongly set as pragma: cache
header on my website, and now I have turned it back to Pragma: no-cache
, but I am still receiving reports that people don't see the updates on my site.
Is there any way to solve it?
I have once wrongly set as pragma: cache
header on my website, and now I have turned it back to Pragma: no-cache
, but I am still receiving reports that people don't see the updates on my site.
Is there any way to solve it?
It depends on what you want the users to see without force refresh. If it is the standard JS and CSS files. Do something like below -
JS
<script src="file.js?version=<?php echo $random_number;?>"></script>
CSS
<link rel="stylesheet" type="text/css" href="style.css?<?php echo $random_number;?>" />
Hope that helps.