Title: How do I &#039;Leverage Browser Cache&#039; this?
Last modified: August 21, 2016

---

# How do I 'Leverage Browser Cache' this?

 *  [thetruejoe90](https://wordpress.org/support/users/thetruejoe90/)
 * (@thetruejoe90)
 * [12 years ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/)
 * I’m trying to get one or two small bits finished and I’ve got everything else
   sorted but when in Google PageSpeed, I get this warning for Leverage Browser 
   Cache:
 * Setting an expiry date or a maximum age in the HTTP headers for static resources
   instructs the browser to load previously downloaded resources from local disk
   rather than over the network.
 * [http://www.my-domain.com/themes/wp-performer/js/core/core.php](http://www.my-domain.com/themes/wp-performer/js/core/core.php)
 * – Anyone have any thoughts at all?

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [12 years ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006783)
 * Most caching plugins, like [http://wordpress.org/plugins/wp-super-cache/](http://wordpress.org/plugins/wp-super-cache/)
   provide this feature. I’m honestly not sure about doing it without a plugin, 
   since I’ve always used cache plugins.
 *  Thread Starter [thetruejoe90](https://wordpress.org/support/users/thetruejoe90/)
 * (@thetruejoe90)
 * [12 years ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006868)
 * I dont want to use a plugin. I want to put the right piece into the htaccess 
   file myself
 *  Thread Starter [thetruejoe90](https://wordpress.org/support/users/thetruejoe90/)
 * (@thetruejoe90)
 * [12 years ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006869)
 * plus, a cache plugin wont do this, I don’t think.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006895)
 * A cache plugin will do that, but yes, you can totally do it on your own in .htaccess
   🙂
 * Looks like this:
 *     ```
       # Expired
       <IfModule mod_expires.c>
       <Filesmatch "\.(jp?eg|png|gif|ico|woff)$">
           ExpiresActive on
           ExpiresDefault "access 1 year"
       </Filesmatch>
   
       <Filesmatch "\.(css|js|swf|mov|mp3|mpeg|mp4|ogg|ogv|ttf|xml|svg|html)$">
           ExpiresActive on
           ExpiresDefault "access 1 month"
       </Filesmatch>
   
           ExpiresDefault "access 2 days"
       </IfModule>
       ## END EXPIRES ##
       ```
   
 *  Thread Starter [thetruejoe90](https://wordpress.org/support/users/thetruejoe90/)
 * (@thetruejoe90)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006911)
 * Nice one.
 * That’s a smarter version of the many I’ve seen over the years, Mika.
 * I’m assuming then that the …
 * `ExpiresDefault "access 2 days"`
 * … would look after the core.php file, yes?

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

The topic ‘How do I 'Leverage Browser Cache' this?’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [Leverage Browser Cache](https://wordpress.org/support/topic-tag/leverage-browser-cache/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 5 replies
 * 3 participants
 * Last reply from: [thetruejoe90](https://wordpress.org/support/users/thetruejoe90/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/how-do-i-leverage-browser-cache-this/#post-5006911)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
