Title: Add Rules for Browser Caching
Last modified: September 7, 2022

---

# Add Rules for Browser Caching

 *  Resolved [dwpro](https://wordpress.org/support/users/dwpro/)
 * (@dwpro)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-rules-for-browser-caching/)
 *     ```
       Hi!
   
       In your instructions your explain, how to edit the nginx.conf file to configure browser caching.
       My webhoster, though, uses Apache as webserver.
       How can I configure browser caching editing either the Apache configuration or the .htaccess file?
       Which of these two options is preferred?
   
       Thank you very much in advance for your help!
   
       Kind regards,
       Gerald
       ```
   

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

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-rules-for-browser-caching/#post-15989017)
 * Hello [@dwpro](https://wordpress.org/support/users/dwpro/) !
 * I hope you’re having a great week!
 * In this case, the rules should be applied for Apache web servers, even if Hummingbird
   detects the web server as nginx (this can sometimes happen on some hosting companies,
   especially if the details of the web server are being hidden).
 * On the Hummingbird >> Caching >> Browser caching please select Apache when configuring.
   Hummingbird will usually be able to add the rules automatically for you. If this
   is not possible, Hummingbird will provide the rules which you can simply paste
   in the .htaccess file in the root directory of the site. You can paste those 
   rules at the beginning of the file for example. You can also contact your hosting
   company’s support and request adding the rules for you.
 * Please note that the way of adding the rules and editing the .htaccess file will
   differ depending on the hosting company, but majority of hosting companies provide
   some sort of file editor in the hosting’s dashboard/cPanel etc. which you can
   use to edit the files.
 * You can find out more about the setup process here: [https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache](https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache)
 * Kind regards,
    Pawel
 *  Thread Starter [dwpro](https://wordpress.org/support/users/dwpro/)
 * (@dwpro)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-rules-for-browser-caching/#post-15991674)
 * Hi!
    Thank you for your explanations. Didn’t notice the choice ‘Apache’ in browser
   cache configuration. Thanks for that hint. Seems to have worked now. Dear greetings,
   Gerald
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-rules-for-browser-caching/#post-15995792)
 * Hi [@dwpro](https://wordpress.org/support/users/dwpro/)
 * I’m glad that this issue is resolved.
 * If you have a moment, I would very much appreciate it if you could quickly rate
   our plugin. This will help us keep the plugin available for free.
 * [https://wordpress.org/support/plugin/hummingbird-performance/reviews/#new-post](https://wordpress.org/support/plugin/hummingbird-performance/reviews/#new-post)
 * Best Regards
    Patrick Freitas

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

The topic ‘Add Rules for Browser Caching’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [browser caching](https://wordpress.org/support/topic-tag/browser-caching/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * 3 replies
 * 3 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/add-rules-for-browser-caching/#post-15995792)
 * Status: resolved