-
Website cache
Hi,
Is there some way the website's cache to be reseted after some time?
For example if a mobile/pc user opens my website it gets stored in his cache, but if I do some visual changes I want my users to get the new version of the website.
How can I do that at my end?
-
In browsers exist some cache and this cache will be refreshed automatically.
-
But when I do css changes the browsers keep the old version of the website
-
I have found this link in google: https://kb.iu.edu/d/ahic
Please read there about clearing browsers cache.
-
I need solution for my users, not me.
How can my website force their cache?
-
Open ftp://.htaccess file
find lines:
Code:
Only registered members can view the code.
and replace to:
Code:
Only registered members can view the code.
save and check again. Also, after done of your changes with design in a few days return old code.
-
Thank you Viktor. But when I test this from my mobile it still opens the website with some old cache. Any other solution? :/
-
Also you can add headers in php file. For example in index.php
try to add the following code:
PHP Code:
Only registered members can view the code.
-
Still can't refresh some things. Would changing style.css to style1.css make my point? Where should I edit that?
-
Yes, you can try to rename the style.css file
Also, you need to change it in ftp://includes>>classes>>rlStatic.class.php
find method: addSystemFiles
and line:
PHP Code:
Only registered members can view the code.