Htaccess File

proyectosdeley/proyectos_de_ley/master/.htaccess

DEFLATE
####################
# GZIP COMPRESSION #
####################
<ifModule mod_gzip.c>
mod_gzip on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file ^application/x-javascript.*
mod_gzip_item_include file ^application/javascript.*
mod_gzip_item_include file ^application/x-json.*
mod_gzip_item_include file ^application/json.*
mod_gzip_item_include file ^text/css.*
</ifModule>

<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 day"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/json "access plus 1 day"
ExpiresByType text/css "access plus 3 months"
ExpiresByType application/x-font-woff "access plus 1 year"
</ifModule>

<IfModule mod_deflate.c>
    <FilesMatch ".(woff|ttf|otf|svg)$" >
    SetOutputFilter DEFLATE
    </FilesMatch>
</IfModule>
Exit mobile version