I have noticed that in mobile browsers my site cant update to the latest version, even when deleting site data. I would like for the user to be able to view the latest version of the page 6 hours (Time to Live 6h) after I have made CSS/JS/Post changes to the site.
First of all I have LiteSpeed Cache disabled on my server for the site. Also I have installed WP Fastest Cache on the WP Admin Panel, in the hope that it would solve the problem but it didnt affect it at all.
I notice that in the Theme Options > General > CSS/Script Related there is an 'Force Dynamic CSS to Inline In Head' option which I have enabled once to see if it flushes the cache but it does not bring the desired result.
How could I possibly set the TTL (Time to Live) Header, throughout my Wordpress site, and be able to flush the cache on every browser when needed to?
It seems that I have put some of my custom code in the child-theme which was removing the auto-versioning from all css, and JS files (https://stackoverflow.com/a/36812842).
Thanks for the help, you may now close this ticket.
Hello,
I have noticed that in mobile browsers my site cant update to the latest version, even when deleting site data. I would like for the user to be able to view the latest version of the page 6 hours (Time to Live 6h) after I have made CSS/JS/Post changes to the site.
First of all I have LiteSpeed Cache disabled on my server for the site. Also I have installed WP Fastest Cache on the WP Admin Panel, in the hope that it would solve the problem but it didnt affect it at all.
I notice that in the Theme Options > General > CSS/Script Related there is an 'Force Dynamic CSS to Inline In Head' option which I have enabled once to see if it flushes the cache but it does not bring the desired result.
How could I possibly set the TTL (Time to Live) Header, throughout my Wordpress site, and be able to flush the cache on every browser when needed to?
Thanks in advance,
Damianos
Attached files: screenshot-oldversion.jpg
screenshot-latestversion.png
Hey Again,
You will have to use a Caching plugin that provides the TTL header: https://www.hostinger.com/tutorials/litespeed-website-optimization-tool/#:~:text=their%20main%20functionality%3A-,TTL%20(Time%20To%20Live),-%E2%80%93%20this%20function%20controls .
Thanks
ThemeNectar Support Team
Hey Tahir,
thanks for the reply. I found out that the feature I wanted was called auto-versioning and was already included in the theme. (https://stackoverflow.com/questions/118884/how-to-force-browsers-to-reload-cached-css-and-js-files).
It seems that I have put some of my custom code in the child-theme which was removing the auto-versioning from all css, and JS files (https://stackoverflow.com/a/36812842).
Thanks for the help, you may now close this ticket.