author | Dan |
Tue, 05 Aug 2008 11:13:05 -0400 | |
changeset 675 | 872f0048dd81 |
parent 596 | 82320949a3b5 |
permissions | -rw-r--r-- |
596
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
1 |
# Thanks to http://phaedo.cx/archives/2007/07/25/tools-for-optimizing-your-website-etag-and-expire-headers-in-django-apache-and-lighttpd/ for this. |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
2 |
FileETag MTime Size |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
3 |
|
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
4 |
# http://www.askapache.com/htaccess/apache-speed-expires.html |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
5 |
<IfModule mod_headers.c> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
6 |
<FilesMatch "\.(jpg|jpeg|png|gif|js|css)$"> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
7 |
Header set Expires "Wed, 1 Jan 2020 20:00:00 GMT" |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
8 |
</FilesMatch> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
9 |
</IfModule> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
10 |
|
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
11 |
# http://www.askapache.com/htaccess/apache-speed-compression.html |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
12 |
<IfModule mod_deflate.c> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
13 |
<FilesMatch "\.(js|css)$"> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
14 |
SetOutputFilter DEFLATE |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
15 |
</FilesMatch> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
16 |
</IfModule> |
82320949a3b5
Added failsafe .htaccess files to enable far future Expires and mod_deflate
Dan
parents:
diff
changeset
|
17 |