Plugin Support
qtwrk
(@qtwrk)
no , not added by LiteSpeed, but it seems correct, you don’t want browser to cache a wordpress page though.
@qtwrk – thanks for responding. WordPress adds it from wp-includes/functions.php
line 1503: function wp_get_nocache_headers() {
$cache_control = 'no-cache, must-revalidate, max-age=0, no-store, private';
I have no idea why wordpress would out of the box prevent caching. Strange. But anyway thanks – regards theo
Plugin Support
qtwrk
(@qtwrk)
because wordpress is dynamic , you don’t want your visitors browser caches your page , then when you update some content from your side , the page doesn’t update on visitor browser side , that would be a problem , specially for something like woocommerce , say you updated a price , customer sees old price , checkout , see new price, customer gets angry, sale lost
@qtwrk – thanks a lot for the concise reply. regards theo