• I am very happy with Quick Cache but have some doubts. My web site (https://goo.gl/mtyiz) consists of a static component and a WordPress blog in the /blog catalog. In the root of the site I have an .htaccess file which according to Google guidelines asks browsers to cache aggressively (https://goo.gl/UNBlj). And the /blog uses the Quick Cache plugin.

    I want the static component to be cached for very long as browsers rewrite their caches anyway, and the blog probably for 1 week (with browser caching activated).

    But will the root .htaccess file not override the Quick Cache settings?

    The code is:

    # Leverage Browser Caching to Increase Website Speed
    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault "access plus 1 month"
    # Favicon
    ExpiresByType image/x-icon "access plus 1 year"
    # Images
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    # CSS
    ExpiresByType text/css "access plus 1 month"
    # Javascript
    ExpiresByType text/x-javascript "access plus 1 year"
    # Flash
    ExpiresByType application/x-shockwave-flash "access plus 1 year"
    </IfModule>

    https://www.ads-software.com/extend/plugins/quick-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • bheadrick

    (@bheadrick)

    while quickcache does have options for browser caching (which is what your .htaccess directives handle) it’s primarily for server-side caching to reduce sql queries and php processing, which are unrelated from your .htaccess directives.

    Thread Starter Tom

    (@tomasz_b)

    Thank you bheadrick! I think my root .htaccess makes browsers cache for a month. My Quick Cache is set to a week AND enables browser caching. I was wondering if now the browser caching of the Quick Cache – controlled blog will be 1 week or 1 month.

    OK, my htaccess is not telling to cache the actual text so I guess users who have recently commented will be anyway served a fresh version of the comments. If they have not commented Quick Cache will make them cache the text for a week, if I get it right. And the graphics throughout the site, including the blog, will be cached probably for a month because of the htaccess directives. Should be good, no?

    bheadrick

    (@bheadrick)

    correct.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caching a blog on a site which is already cached’ is closed to new replies.