• Resolved timholz

    (@timholz)


    Hi – looking at the headers, i see:

    cache-control:no-cache, must-revalidate, max-age=0, no-store, private

    Is litespeed plugin adding this header? Is this correct? Regards theo

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    no , not added by LiteSpeed, but it seems correct, you don’t want browser to cache a wordpress page though.

    Thread Starter timholz

    (@timholz)

    @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

    Thread Starter timholz

    (@timholz)

    @qtwrk – thanks a lot for the concise reply. regards theo

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.