35 lines
764 B
ApacheConf
35 lines
764 B
ApacheConf
<IfModule mod_expires.c>
|
|
|
|
# Enable expirations
|
|
ExpiresActive On
|
|
|
|
# Default directive
|
|
ExpiresDefault "access plus 1 month"
|
|
|
|
# My favicon
|
|
ExpiresByType image/x-icon "access plus 1 year”
|
|
|
|
# Images
|
|
ExpiresByType image/gif "access plus 1 month"
|
|
ExpiresByType image/png "access plus 1 month"
|
|
ExpiresByType image/jpg "access plus 1 month"
|
|
ExpiresByType image/jpeg "access plus 1 month"
|
|
|
|
# CSS
|
|
ExpiresByType text/css "access 1 month”
|
|
|
|
# Javascript
|
|
ExpiresByType application/javascript "access plus 1 year"
|
|
|
|
ExpiresByType text/csv "access plus 10 minutes”
|
|
|
|
ExpiresByType text/txt "accesss”
|
|
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_headers.c>
|
|
Header set Access-Control-Allow-Origin http://sandgrube.n-ip.org
|
|
Header set Access-Control-Allow-Credentials true
|
|
</IfModule>
|
|
|