Browser cache WP-Admin Fix

Home Forums BulletProof Security Pro Browser cache WP-Admin Fix

This topic contains 0 replies, has 1 voice, and was last updated by  rafaelmagic 1 year, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #32880


    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"
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.