deflate and expires on css and js files?

Status
Not open for further replies.

aspeno

New Member
Messages
2
Reaction score
0
Points
0
I do not think there is a way in cpanel to turn these Apache options on?
 

carrock

New Member
Messages
11
Reaction score
0
Points
1
I do not think there is a way in cpanel to turn these Apache options on?


Not in CPanel, but something like this appended to your root .htaccess file will set expiry time for any chosen file types:

Code:
<FilesMatch "\.(css|js)$">
ExpiresActive On
Header set Cache-Control "public,must-revalidate"
Header unset Pragma
ExpiresDefault "access plus 1 month"
</FilesMatch> [L]
I've never tried, but deflating could likely also be set in .htaccess.



Carrock
 

aspeno

New Member
Messages
2
Reaction score
0
Points
0
Do you have this working on x10? It does not look like it works for me.
 
Status
Not open for further replies.
Top