htaccess file - question about content and Litespeed

kaieivindm

Well-known member
Hi,

Just curious what people here think of this content:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/gif "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType text/html "access 1 week"
ExpiresByType font/ttf "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType text/x-javascript "access 1 week"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 week"
</IfModule>
## EXPIRES CACHING ##

I used to have this to leverage browser cache with Apache webserver.

But after the move to Litespeed, I am but curious if this is even needed? Or change it with something else instead?

Thanks.
 
Try to test it with gtmetrix and google pagespeed insight. Compare when you use and when you don't.
 
Top Bottom