PHP Classes

File: htaccess

Recommend this page to a friend!
  Classes of riccardo castagna   PHP Font Face Performance Control   htaccess   Download  
File: htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Font Face Performance Control
Optimize the load of page fonts embedding into CSS
Author: By
Last change:
Date: 5 years ago
Size: 1,212 bytes
 

Contents

Class file image Download
<IfModule mod_deflate.c> <FilesMatch "\.(ico|jpg|jpeg|webp|png|gif|js|css|html|php|txt|xml|ttf|eot|otf|woff|json|woff2)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(ico|jpg|jpeg|webp|png|gif|html?|txt|css|js|php|pl|xml|ttf|eot|otf|woff|json|woff2)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </IfModule> <FilesMatch "\.(?i:gif|jpe?g|png|webp|ico|js|css|txt|ttf|eot|otf|woff|woff2|script)$"> FileETag None <IfModule mod_headers.c> Header set Cache-Control "max-age=864000, public, must-revalidate" Header unset ETag Header unset Last-Modified </IfModule> </FilesMatch> <FilesMatch "\.(json|js|txt|ttf|eot|woff|woff2|otf)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index\.php$ - [L] RewriteRule ^index_2\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d </IfModule>