Viewing 6 replies - 1 through 6 (of 6 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    When this occurs do your pages for logged in users contain the Cache Enabler HTML comment, for example:

    <!-- Cache Enabler by KeyCDN @ 12.06.2019 01:00:00 (html) -->

    If yes, can you please provide a screenshot of the response headers for a page when a user is logged in? The response headers for a page can be found in your browser’s developer tools Network panel.

    Thread Starter Anonymous User 16833488

    (@anonymized-16833488)

    yes, this html comment is shown

    you can see this bug here: https://www.youtube.com/watch?v=hZa3wImcnTs

    I put more details of my nginx configuration in the link I posted earlier: https://community.centminmod.com/threads/change-from-cache-enabler-to-fastcgi_cache.17721/#post-74921

    Thread Starter Anonymous User 16833488

    (@anonymized-16833488)

    <!-- Cache Enabler by KeyCDN @ 12.06.2019 00:39:47 (html gzip) -->

    • This reply was modified 5 years, 8 months ago by Anonymous User 16833488.
    Anonymous User 16850768

    (@anonymized-16850768)

    I receive a “This video is unavailable” error when attempting to view the video above. Can you please either provide a screenshot of the response headers or copy them directly for a page when a user is logged in?

    Thread Starter Anonymous User 16833488

    (@anonymized-16833488)

    sorry, the video will work now https://www.youtube.com/watch?v=hZa3wImcnTs

    Anonymous User 16850768

    (@anonymized-16850768)

    This issue is occurring because the Cache-Control HTTP header isn’t being set on each page. Cached pages are only being delivered to logged in users when this header is absent. To fix this ensure that this header is being set accordingly (e.g. Cache-Control: no-cache when logged in and Cache-Control: max-age=2592000 when logged out).

    You can learn more about the Cache-Control HTTP header in this Cache-Control – How to Properly Configure It article.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Logged in users are served with cache’ is closed to new replies.