• Resolved Dan14

    (@dan14)


    The html cache policy for html I chose is no-cache, no-store etc. using w3 total cache settings.

    When logged-in, the cache policy for html is ignored and the default apache cache policy is used (no-cache, must-revalidate, max-age=0).

    If I add the following to htaccess then the cache header I select will be enforced to html:

    <filesMatch “\.(x?html?|php)$”>
    Header set Cache-Control “example”
    </filesMatch>

    I believe it is due to php being added.

    It might not seem as a big deal but the website is extremely slow for logged-in users only, which was not the case beforehand.

    I believe it is elementor plugin (free) that is causing the above issues with the html cache control. I dont know if the new version (3.8) triggered this.

    I will appreciate any info on resolving the above.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dan14

    Thank you for reaching out and I am happy to assist you with this.
    Can you please confirm that you are referring to logged-in users in the wp-admin or the subscribers for example?
    Also, can you try to disable the option “Don’t cache pages for logged-in users” and see if you ate getting those headers if logged in in wp-admin?
    If this is the case, the behavior is normal since the pages should not be cached at all for logged-in users.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘html cache control header is ignored when logged-in’ is closed to new replies.