Support » Plugin: Cache Enabler - WordPress Cache » Excluding wp-admin page?

  • Resolved devrekli

    (@devrekli)


    I am use this code for leverage browser caching. https://www.keycdn.com/support/cache-control

    litespeed

    <filesMatch “.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$”>
    Header set Cache-Control “max-age=84600, public”
    </filesMatch>

    But this is a problem. Because I can’t save the settings. I can’t see the changes.

    How can I exclude cache for admin?

    I can try

    <filesMatch “.(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$”>
    Header set Cache-Control “max-age=604800, must-revalidate” “expr=%{REQUEST_URI} !~ m#^/wp-admin#”
    </filesMatch>

    but this code didn’t work. I don’t know why you can’t add this feature, but help me please. thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • or I am use wrong code for LITESPEED?

    Plugin Support Corey

    (@coreyk)

    By default the Cache Enabler plugin doesn’t deliver cached pages for logged in users. The directive you’ve provided doesn’t match your pages. This means the Cache-Control response header won’t be set on your pages by that directive specifically.

    Can you please provide the response headers for one of your admin pages?

    yes. By default the Cache Enabler plugin doesn’t deliver cached pages for logged in users.

    but when I add this code, the wp-admin page is cached.

    htaccess:

    <filesMatch “.(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$”>
    Header set Cache-Control “max-age=604800, must-revalidate” “expr=%{REQUEST_URI} !~ m#^/wp-admin#”
    </filesMatch>

    I am trying to prevent this. thanks

    Why not add Browser caching to the plugin? this is present in all plugins 🙁

    Plugin Support Corey

    (@coreyk)

    Can you please provide the response headers for one of your admin pages? In case you don’t know, one way to get the response headers for an admin page is through the Network panel in your browser’s developer tools.

    Furthermore, providing the contents in your .htaccess file would also be helpful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excluding wp-admin page?’ is closed to new replies.