Title: Adding expires headers in wordpress multisite
Last modified: August 20, 2016

---

# Adding expires headers in wordpress multisite

 *  Resolved [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/)
 * hello,
    i’ve been setting belgranostudio.com .htaccess file, with all the expire
   and gzip compresion settings that I could find on the web, and my tests have 
   really improved. I’ve implemented a CDN also, Cloudflare. But this settings don’t
   seem to affect the subdomains performance that much; everyhing is going faster,
   anyway. I don’t want to use a plugin like W3; if there’s some other solution,
   I’ll be glad to hear it.
 * Thanks everybody !
    L.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3378818)
 * .htaccess rules apply to all subdomains on the network, same as the main site.
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3378822)
 * YSlow gives me very different metrics, between the main site and the subdomain…
   
   thanks !
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3378823)
 * And yet it marks in the subdomain some issues that it doesn’t on the main site…
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379002)
 * *eyes ySlow*
 * I get the same results on my domain, mapped domain, and subdomain.
 * Can you share your sites?
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379009)
 * They’re
    belgranostudio.com and online.belgranostudio.com But I’ve got them behind
   a ‘comming soon’ plugin, until they’re ready. Whenever you tell me I can disable
   the plugin to let you do the tests.
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379013)
 * Right now, and for a couple of hours, i’m gonna have the sites online.
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379018)
 * Here are the results of gmetrix,
    [http://gtmetrix.com/compare/5wbxh1it/cPIGGvRO](http://gtmetrix.com/compare/5wbxh1it/cPIGGvRO)
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379027)
 * Are the sites running the same theme and plugins? You’d have to look at WHAT 
   it’s barking at, since I know I regularly get yelled at because Google’s not 
   got the right expires on their own JS.
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379030)
 * Yes, same theme. Same plugins.
    I’ll check what you’re saying. Thanks !
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379050)
 * Assuming you put the expires in your .htaccess… what’d you put? 🙂
 * I used this:
 *     ```
       <IfModule mod_expires.c>
           ExpiresActive On
           ExpiresByType image/jpg "access 1 year"
           ExpiresByType image/jpeg "access 1 year"
           ExpiresByType image/gif "access 1 year"
           ExpiresByType image/png "access 1 year"
           ExpiresByType image/x-icon "access 1 year"
   
           ExpiresByType text/css "access 1 month"
           ExpiresByType text/html "access 1 hour"
   
           ExpiresByType application/pdf "access 1 month"
           ExpiresByType application/x-javascript "access 1 month"
           ExpiresByType application/javascript "access 1 month"
           ExpiresByType text/javascript "access 1 month"
           ExpiresByType text/x-js "access 1 month"
   
           ExpiresByType application/x-shockwave-flash "access 1 month"
   
           ExpiresByType video/quicktime "access 1 month"
           ExpiresByType audio/mpeg "access 1 month"
           ExpiresByType video/mp4 "access 1 month"
           ExpiresByType video/mpeg "access 1 month"
           ExpiresByType audio/ogg  "access 1 month"
           ExpiresByType video/ogg  "access 1 month"
   
           ExpiresDefault "access 2 days"
       </IfModule>
       ```
   
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379051)
 * I used this. Dont remember where I got it from.
 *     ```
       ## EXPIRES CACHING ##
   
       <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType image/jpg "access 1 year"
       ExpiresByType image/jpeg "access 1 year"
       ExpiresByType image/gif "access 1 year"
       ExpiresByType image/png "access 1 year"
       ExpiresByType text/css "access 1 month"
       ExpiresByType application/pdf "access 1 month"
       ExpiresByType text/x-javascript "access 1 month"
       ExpiresByType application/x-shockwave-flash "access 1 month"
       ExpiresByType image/x-icon "access 1 year"
       ExpiresDefault "access 7 days"
       </IfModule>
   
       ## EXPIRES CACHING ##
       ```
   
 *  Thread Starter [leosampieri](https://wordpress.org/support/users/leosampieri/)
 * (@leosampieri)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379053)
 * It looks almost identical.
    Anyway, I’m relying on Cloudflare to make my sites
   faster; I don’t think I’m going to spend mucho more time on this issue. Things
   are going fast enough for me. Still surprised !!. Cheers !!.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379054)
 * I went with mod_pagespeed to make things zippier 😉 I don’t like CDNs.

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

The topic ‘Adding expires headers in wordpress multisite’ is closed to new replies.

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [expires](https://wordpress.org/support/topic-tag/expires/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [load time](https://wordpress.org/support/topic-tag/load-time/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)
 * [speed](https://wordpress.org/support/topic-tag/speed/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 13 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/adding-expires-headers-in-wordpress-multisite/#post-3379054)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
