Hi forum,

I have got a real headache going on about setting my expires headers.

I've successfully done all the basic configuration is my .htaccess

Code:
<IfModule mod_expires.c>
 
    ExpiresActive on
    ExpiresDefault "access plus 1 month"
 
  # CSS
    ExpiresByType text/css "access plus 1 year"
 
  # Data interchange
    ExpiresByType application/json "access plus 1 week”
    ExpiresByType application/xml "access plus 1 week”
    ExpiresByType text/xml "access plus 1 week”
 
  # Favicon (cannot be renamed!)
    ExpiresByType image/x-icon "access plus 1 year”
 
  # HTML components (HTCs)
    ExpiresByType text/x-component "access plus 1 month"
 
  # HTML
    ExpiresByType text/html "access plus 0 seconds"
 
  # JavaScript
    ExpiresByType application/javascript "access plus 1 year"
   
  # Manifest files
    ExpiresByType application/x-web-app-manifest+json "access plus 1 week”
    ExpiresByType text/cache-manifest "access plus 1 week”
 
  # Media
    ExpiresByType audio/ogg "access plus 1 year”
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 year"
    ExpiresByType video/ogg "access plus 1 year”
    ExpiresByType video/webm "access plus 1 year”
 
  # Web feeds
    ExpiresByType application/atom+xml "access plus 1 day”
    ExpiresByType application/rss+xml "access plus 1 day”
 
  # Web fonts
    ExpiresByType application/font-woff "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    ExpiresByType application/x-font-ttf "access plus 1 month"
    ExpiresByType font/opentype "access plus 1 month"
    ExpiresByType image/svg+xml "access plus 1 month"
 
</IfModule>
All of this is working lovely. But my problem now lies in a few instances where resources aren't being covered by this code. GTmetrix can list the individual resources but I have no idea how to manually change the expire time.

I have spoken with dreamhost and they don't support
Code:
mod_expires
which seems weird but seems to be true.

I just don't know where to go from here.

From what I can tell I will need to go deeper into apache but I need to be given baby steps if this is the case. I am hoping your collective genius can guide me through.

Here are the following resources that need expires set:




Many, MANY, thanks in advance.