• Resolved mrunalinic

    (@mrunalinic)


    Hey there!,

    The browser cache page reports the following error:

    Browser Caching is not working properly

    My .htaccess file only contains the following:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A0
    
    <FilesMatch "\.(txt|xml|js)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(css)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    ExpiresDefault A31536000
    </FilesMatch>
    </IfModule>
    
    <IfModule mod_headers.c>
      <FilesMatch "\.(txt|xml|js)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(css)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    </IfModule>

    I have taken this code from the recommended solution. But still the cache setting shows disabled. Unable to restart apache server as I am using Managed WordPress solution.

    Any help in resolving this issue will be great.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mrunalinic

    I hope you’re well today and thank you for your question!

    According to the GiftOfSpeed cache checker, most JS/CSS/HTML assets and images coming from your site are already set to be browser-cached for 10 years. Some assets are not cached at all or cached for shorter time but those are either coming from 3rd-party locations (e.g. Analytics scripts) or are configured to be cached (like .woff2 font files).

    However, your setup appears to be behind CDN/proxy. I think you’re hosting with GoDaddy and very likely you already have either CDN included in your hosting plan or it’s a “hybrid” server configuration where site is directly served by Apache webserver but it’s passed through nginx that acts as a proxy.

    In any of this cases, setting browser caching in Apache (which, by the way, doesn’t require restart – unlike nginx) won’t have any effect because all the requests would go through CDN/proxy (or nginx webserver set as proxy by the host) which would be the one setting all the caching headers.

    That said, depending on the server setup and the level of access that you have to it:

    1. if it’s a “hybrid” setup (Apache + nginx) and you do have access to nginx configuration – in Hummingbird Browser Caching settings switch server type to nginx and follow the guide from there to add rules to nginx configuration (it will also require nginx to be restarted)

    2. if you either don’t have access to that configuration or it’s some different solution, entirely provided by your host (so CDN specific to the host) you might need to contact your host, asking them to make changes as Hummingbird can’t automatically integrate to such setup to control browser caching.

    Kind regards
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mrunalinic ,

    We haven’t heard from you for several days now, so it looks like you no longer need our assistance.

    Please feel free to re-open this ticket if needed.

    kind regards,
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hummingbird Browser caching not working’ is closed to new replies.