• There are many great plugins that help you to cache and optimize your website and integrate with many other CDNS.

    However, none of them offers you simple functionality. I found a very simple plugin that does it job to my needs

    However, it’s still doesn’t override the caching for pages, I would prefer to enable 0 seconds cache and revalidate the content everytime, this way if the content has not been changed, it will not send the whole file, but will be 304 response code.

    The main issue I see, is the prgama: no-cache header and I can’t remove it. I tried adjusting it using .htaccess, but it didn’t help;

    <FilesMatch "^(\/|\/\.*\/)$">
            <ifModule mod_headers.c>
                    Header unset Pragma
                    Header unset ETag
                    Header unset Expires
            </ifModule>
    </FilesMatch>

    This rule still didn’t remove the pragma: no-cache header from the homepage or any other page.

    How can I remove the pragma: no-cache for pages, posts?

  • The topic ‘Caching’ is closed to new replies.