• Resolved qph9697

    (@qph9697)


    Hi, first of all, thank you for such a wonderful plugin.

    I am receiving this error in my admin dashboard,

    Unexpected cache rule ExpiresDefault found in .htaccess file. This rule may cause visitors to see old versions of pages due to the browser caching HTML pages. If you are sure that HTML pages are not being browser cached, this message can be dismissed.

    I found that AMPFORWP is adding this browser cache, here is my .htaaccess code

    AMPFORWPLBROWSERCSTART Browser Caching
    <IfModule mod_expires.c>
    ExpiresActive On
    AddType application/vnd.ms-fontobject .eot
    AddType application/x-font-ttf .ttf
    AddType application/x-font-opentype .otf
    AddType application/x-font-woff .woff
    AddType image/svg+xml .svg
    ExpiresByType application/vnd.ms-fontobject “access 1 year”
    ExpiresByType application/x-font-ttf “access 1 year”
    ExpiresByType application/x-font-opentype “access 1 year”
    ExpiresByType application/x-font-woff “access 1 year”
    ExpiresByType image/svg+xml “access 1 year”
    ExpiresByType image/webp “access 1 year”
    ExpiresByType image/gif “access 1 year”
    ExpiresByType image/jpg “access 1 year”
    ExpiresByType image/jpeg “access 1 year”
    ExpiresByType image/png “access 1 year”
    ExpiresByType image/x-icon “access 1 year”
    ExpiresByType text/css “access 3 month”
    ExpiresByType text/javascript “access 3 month”
    ExpiresByType text/html “access 3 month”
    ExpiresByType application/javascript “access 3 month”
    ExpiresByType application/x-javascript “access 3 month”
    ExpiresByType application/xhtml-xml “access 3 month”
    ExpiresByType application/pdf “access 3 month”
    ExpiresByType application/x-shockwave-flash “access 3 month”
    ExpiresDefault “access 3 month”
    </IfModule>

    Do I have to remove ExpiresDefault? And how can I make plugin cache PHP files instead of a browser?

    Please help me with this.

    • This topic was modified 4 years, 6 months ago by qph9697.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please remove this ruleset

    later on you can enable LSCWP’s browser cache to get same feature.

    LiteSpeed Cache plugin is designed to cache PHP request

    Best regards,

    Thread Starter qph9697

    (@qph9697)

    Hi, how to make sure that the browser doesn’t caches HTML file?

    And do I have to remove ExpiresDefault “access 3 month” right?

    Also,

    I found this in one of your earlier posts
    ExpiresByType text/html “access plus 0 seconds”

    Will it be of any help to me?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    By default for WP and LSCWP, it doesn’t instruct browser to cache HTML at all

    I will need to know more detail about your situation , and provide a page link if possible

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unexpected Cache Rule Error’ is closed to new replies.