mhmli/template_onepage/master/html/.htaccess - Htaccess File

mhmli/template_onepage/master/html/.htaccess

<FilesMatch ".(js|css)$">
  <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 31 days"
  </IfModule>
  FileETag MTime Size
</FilesMatch>

<FilesMatch ".(png|gif|jpg)$">
  <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 31 days"
  </IfModule>
  FileETag MTime Size
</FilesMatch>

<FilesMatch ".js.gzip$">
  AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch ".css.gzip$">
  AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
  AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
  AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
  <FilesMatch ".(ttf|otf|eot|svg)$" >
      SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE

Comments

Apache