Plugin Contributor
iSaumya
(@isaumya)
Hi,
in terms of not caching the home page as I can see the plugin is respecting your choice and not caching the home page content:
View post on imgur.com
View post on imgur.com
But it seems you have some other rpage caching system in place according to your response header: https://i.imgur.com/UdsJtZg.jpeg
So, it might be possible it is either a conflict between multiple caching system or the other system are caching something. As this plugin is setting the cache-control header properly as per your request – not to cache the page.
Coming to the dynamic pricing – I don’t know how you have implemented it, but if you have used some PHP based system where at the PHP level you are checking the user country and then changing the currency accordingly — then you won’t be able to use any page caching system with the site. As to render the dynaming pricing PHP always needs to be executed which means the request needs to be served by the origin server and not a cache or CDN server.
Alternatively, if you would have used JavaScript to asynchronously check the user location and change the pricing – then it will work perfectly with page caching.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@vermaakpetrus Please do not post the same thing twice to create multiple thread with duplicate content. I have archived your duplicate topic.
sorry, power went off on my side. Did not know it posted twice!
@isaumya Awesome reply!! Thanks we’re on it! Sneaky host cache that was not supposed to be there…
@isaumya I know this may sound like an obscure question but is there a way to turn off my hosting cache and allow your plugin cache in htaccess? Seems that there is a level if caching that they apply even though I turned everything off in their control panel.
Plugin Contributor
iSaumya
(@isaumya)
Seems that there is a level if caching that they apply even though I turned everything off in their control panel.
– Unfortunately, it can only be turned off by the hosting provider.