reg IfModule mod_expires.c [ Do it work in .htaccess ]

#1
Hi,

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 month”
ExpiresByType image/jpeg “access 1 month”
ExpiresByType image/gif “access 1 month”
ExpiresByType image/png “access 1 month”
ExpiresByType text/css “access 1 year”
ExpiresByType text/html “access 1 week”
ExpiresByType application/pdf “access 1 year”
ExpiresByType text/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 week”
</IfModule>
## EXPIRES CACHING ##

As per gtmartix , will this work if I add it ??
 

Cold-Egg

Administrator
#3
It won't work in .htaccess but I think you can update expiration time on server level. Check Web admin > Server Configuration > General > Expires Settings
Here's the default value:
Code:
image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
 
#7
2019-12-17 07:07:27.377576 [INFO] Invalid rewrite directive: Options -Indexes
2019-12-17 07:07:27.377580 [INFO] Invalid rewrite directive: DirectoryIndex index.php index.html index.htm
2019-12-17 07:07:27.385186 [NOTICE] AIO is not supported on this machine!

Any alternative with OLWS ?
 
Top