• Resolved Faceline

    (@faceline)


    Hello, I recently came up with this frustrating problem in which every file type has browser cache enabled except .WOFF font type.

    Here is my .htaccess file, which is I believe, generated by LSWS cache plugin.

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker LOGIN COOKIE start ###
    RewriteRule .? - [E="Cache-Vary:wp-postpass_dc7f18c28006f9f6163b0551a0f8820d"]
    ### marker LOGIN COOKIE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A15778476
    ExpiresByType image/x-icon A15778476
    ExpiresByType image/vnd.microsoft.icon A15778476
    ExpiresByType image/svg+xml A15778476
    
    ExpiresByType image/jpg A15778476
    ExpiresByType image/jpeg A15778476
    ExpiresByType image/png A15778476
    ExpiresByType image/gif A15778476
    ExpiresByType image/webp A15778476
    
    ExpiresByType video/ogg A15778476
    ExpiresByType audio/ogg A15778476
    ExpiresByType video/mp4 A15778476
    ExpiresByType video/webm A15778476
    
    ExpiresByType text/css A15778476
    ExpiresByType text/javascript A15778476
    ExpiresByType application/javascript A15778476
    ExpiresByType application/x-javascript A15778476
    
    ExpiresByType application/x-font-ttf A15778476
    ExpiresByType application/x-font-woff A15778476
    ExpiresByType application/font-woff A15778476
    ExpiresByType application/font-woff2 A15778476
    ExpiresByType application/vnd.ms-fontobject A15778476
    ExpiresByType font/ttf A15778476
    ExpiresByType font/woff A15778476
    ExpiresByType font/woff2 A15778476
    
    </IfModule>
    ### marker BROWSER CACHE end ###
    
    ### marker MINIFY start ###
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
    RewriteCond %1/wp-content/cache/$2/$1.$2 -f
    RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
    </IfModule>
    ### marker MINIFY end ###
    
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    In htaccess , there are lines :

    ExpiresByType font/ttf A15778476
    ExpiresByType font/woff A15778476
    ExpiresByType font/woff2 A15778476

    Could you please be a little bit of more specific about your issue here ?

    or you mean the woff cache is not working ?

    Best regards

    Thread Starter Faceline

    (@faceline)

    I do not know…
    Here is the file link

    https://bestproduct.in/wp-content/themes/theme/fonts/fontlite.woff

    Also, here is my website link

    You can test it in your own browser

    • This reply was modified 4 years, 11 months ago by Faceline.
    • This reply was modified 4 years, 11 months ago by Faceline.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number ?

    Best regards,

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi,

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

    If you still need help, we’ll be happy to reopen the topic. Please provide your Report Number, found in WP Admin > LiteSpeed Cache > Report, if so.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Browser cache for .WOFF file type’ is closed to new replies.