Title: Browser static caching broken?
Last modified: January 7, 2021

---

# Browser static caching broken?

 *  Resolved [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/)
 * Hello,
 * I’m using php 7.4 64 bits, latest wp version, latest wp optimize version.
 * In the Browser static file caching settings, I don’t see any way to change the
   time for caching. It justs reads this: “Browser static file caching headers are
   currently enabled.” with a green check mark.
 * See : [https://imgur.com/a/pBlG41O](https://imgur.com/a/pBlG41O)
 * Also Google page speed test says caching is only 15 minutes for js, css, and 
   images. And there is no cache set for woff2.
 * Do you know how to manually set the delay in the plugin and where is the code
   stored? In which htaccess file is it stored? There is nothing cache related in
   my main .htaccess file!
 * Also, in wpo-cache folder, I only have this in the .htaccess file:
 * # Disable directory browsing
    Options -Indexes
 * # Disable access to any files
    <FilesMatch “.*”> Order allow,deny Deny from all
   </FilesMatch>
 * Also, it would be good if we could deactivate this feature so we can insert our
   own code in htaccess file.
 * Thank you
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This topic was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/#post-13879705)
 * [@astrix](https://wordpress.org/support/users/astrix/)
 * Something is wrong with your setup, you should see Expiration time, check the
   screenshot below:
    [https://www.dropbox.com/s/q3asb1wpvi4kypl/Screenshot%20at%20Jan%2008%2007-18-15.png?dl=0](https://www.dropbox.com/s/q3asb1wpvi4kypl/Screenshot%20at%20Jan%2008%2007-18-15.png?dl=0)
 * Can you please try to delete and re-install the plugin?
 * In-order to remove the .htaccess you’ll have disable the minify feature, As there’s
   no option to selectively remove the .htaccess file as it gets generated automatically.
 *  Thread Starter [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/#post-13880731)
 * Hello [@bornforphp](https://wordpress.org/support/users/bornforphp/), I think
   the issue is coming from WP Optimize because I installed the latest version on
   another website install and same happened. Also, check this video: [https://youtu.be/gYEDOhKY1QE?t=534](https://youtu.be/gYEDOhKY1QE?t=534)
   @8min55 you can see he can’t modify the delay.
 * I also tried on a fresh wordpress install, same issue
    I don’t have minify activated
   I tried other brower cache plugin and they managed to add entries to my .htaccess
   file
 * Thank you
    -  This reply was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
    -  This reply was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/#post-13889625)
 * [@astrix](https://wordpress.org/support/users/astrix/) Can you please try to 
   keep only default WordPress .htaccess rules in .htaccess file and check if you
   see the Expiration option in Static file headers tab?
 *  Thread Starter [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/#post-13896794)
 * Hello [@bornforphp](https://wordpress.org/support/users/bornforphp/), I can confirm
   that this issue is still there even on a fresh and clean WordPress 5.6 install
   with no other plugin than WP Optimize.
 * Gzip entries are properly added in the main .htaccess file by WP-Optimize, but
   nothing related to browser cache and no delay option in wpo browser cache tab(
   tried deactivating, reactivating wpo with no luck):
 * # BEGIN WP-Optimize Gzip compression
    <IfModule mod_filter.c> <IfModule mod_deflate.
   c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddType application/
   vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType font/
   x-woff .woff AddType image/svg+xml .svg
 *  AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType 
   DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-
   fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType
   DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/
   x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType
   DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-font-
   woff AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType
   DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType
   DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType
   DEFLATE font/ttf AddOutputFilterByType DEFLATE font/woff AddOutputFilterByType
   DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType
   DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType
   DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType
   DEFLATE text/xml
 * # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/
   4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE!
   no-gzip !gzip-only-text/html Header append Vary User-Agent </IfModule> </IfModule
   > # END WP-Optimize Gzip compression
 * In the .htaccess located in the wpo-cache folder, this is the content:
 * # Disable directory browsing
    Options -Indexes
 * # Disable access to any files
    <FilesMatch “.*”> Order allow,deny Deny from all
   </FilesMatch>
    -  This reply was modified 5 years, 4 months ago by [Astrix](https://wordpress.org/support/users/astrix/).

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

The topic ‘Browser static caching broken?’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Astrix](https://wordpress.org/support/users/astrix/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/browser-static-caching-broken/#post-13896794)
 * Status: resolved