• Resolved katehackett

    (@katehackett)


    Hi, I’m trying to change my cache expiry for javascript, css, and images but I’m not able to do it via .htaccess OR automatically. Nothing is working and DreamHost can’t do anything on their end?

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

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

    (@wpmudev-support2)

    Hello @katehackett ,

    I’m afraid that the link you shared is not working. Can you give us the correct link, so we could have a closer look on your site?

    kind regards,
    Kasia

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Hi Kate, I’m looking at your .htaccess right now (I work at DreamHost) and I see your hummingbird settings are there (included at the end here).

    You’re on DreamPress, though, which means if you changed that and didn’t flush cache, you MAY still be getting old data. This was posted 4 days ago, though, so maybe it resolved? (Sorry I didn’t see it, don’t crash your bicycle like I did)

    # BEGIN WP-HUMMINGBIRD-CACHING
    # The directives (lines) between "BEGIN WP-HUMMINGBIRD-CACHING" and "END WP-HUMMINGBIRD-CACHING" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <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>
    # END WP-HUMMINGBIRD-CACHING
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cache Issues’ is closed to new replies.