WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache (Speed Without Compromise)
Caching a blog on a site which is already cached (4 posts)

  1. Tom
    Member
    Posted 1 year ago #

    I am very happy with Quick Cache but have some doubts. My web site (http://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 (http://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>

    http://wordpress.org/extend/plugins/quick-cache/

  2. bheadrick
    Member
    Posted 1 year ago #

    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.

  3. Tom
    Member
    Posted 1 year ago #

    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?

  4. bheadrick
    Member
    Posted 1 year ago #

    correct.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic