Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (39 sloc) 1.607 kb
e8efef7 @jonathanstark added svn files
jonathanstark authored
1 # A .htaccess file is a hidden file which runs on Unix servers
2 # and provides directives. Renaming this file to .htaccess and
3 # placing in your root directory _should_ enable GZip compression,
4 # reducing the weight of pages/scripts being served.
5
6 # Please note that all of these rules are optimizations
7 # and not necessary for jQTouch to work. If this causes
8 # any issues with your server, just remove.
9
10 <ifModule mod_gzip.c>
11 mod_gzip_on Yes
12 mod_gzip_dechunk Yes
13 mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
14 mod_gzip_item_include handler ^cgi-script$
15 mod_gzip_item_include mime ^text/.*
16 mod_gzip_item_include mime ^application/x-javascript.*
17 mod_gzip_item_exclude mime ^image/.*
18 mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
19 </ifModule>
20
21 <ifModule mod_deflate.c>
22 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
23 </ifModule>
24
25 <ifModule mod_expires.c>
26 ExpiresActive On
27 ExpiresDefault "access plus 1 seconds"
28 ExpiresByType text/html "access plus 1 seconds"
29 ExpiresByType image/gif "access plus 2592000 seconds"
30 ExpiresByType image/jpeg "access plus 2592000 seconds"
31 ExpiresByType image/png "access plus 2592000 seconds"
32 ExpiresByType text/css "access plus 604800 seconds"
33 ExpiresByType text/javascript "access plus 216000 seconds"
34 ExpiresByType application/x-javascript "access plus 216000 seconds"
35 </ifModule>
36
37 <ifModule mod_headers.c>
38 Header unset ETag
39 </ifModule>
40
41 FileETag None
42
43 <ifModule mod_headers.c>
44 Header unset Last-Modified
45 </ifModule>
46
47 AddType text/cache-manifest .manifest
Something went wrong with that request. Please try again.