wp-plugins/speedupessentials/master/public/.htaccess - Htaccess File

wp-plugins/speedupessentials/master/public/.htaccess

# BEGIN SpeedUpEssentials
<IfModule mod_headers.c>    
    Header set Vary "Accept-Encoding, Cookie"
    Header set Cache-Control 'max-age=3, must-revalidate'
    <FilesMatch ".(html?|txt|css|js|php|pl|jpg|jpeg|png|gif|bmp|swf)$">
        Header set Cache-Control "max-age=604800, public"
    </FilesMatch>    
</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType text/css "access 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    ExpiresByType text/html "access 1 year"
</IfModule>
<ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|php|pl|txt|php|pl)$
    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>
<IfModule mod_mime.c>
  <FilesMatch ".html.gz$">
    ForceType text/html
    FileETag None
    AddEncoding gzip .gz
    AddType text/html .gz
  </FilesMatch>  
</IfModule>
<IfModule mod_deflate.c>
  SetEnvIfNoCase Request_URI .gz$ no-gzip
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9"]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/html/%{SERVER_NAME}/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/html/%{SERVER_NAME}/$1/index.html" [L]
</IfModule>
# END SpeedUpEssentials

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, no-gzip, POST, Profile, QUERY_STRING, REQUEST_METHOD, REQUEST_URI, SERVER_NAME, X-Wap-Profile

Comments

Apache