Browser cache WP-Admin Fix

Home Forums BulletProof Security Pro Browser cache WP-Admin Fix

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32880
    rafaelmagic
    Participant

    In case you are Caching .html files with .htacess in your WordPress Install and your WP-Admin is being browser cached.

    If you need to refresh the browser so the backend loads properly. Just apply the below code to the WP-Admin .htaccess Custom Code.

    It will prevent .html, .htm, .js and .css from being Browser Cached in the WP-Admin area.

    
    #Browser Cache WP-Admin Fix
    <filesMatch "\.(html|htm|js|css)$">
    FileETag None
    <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
    </ifModule>
    </filesMatch>
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.