aboutsummaryrefslogtreecommitdiffstats
path: root/conf/httpd.conf-example
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-09-02 19:16:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-09-02 19:16:10 +0100
commitb3cda28415c7f0126befd2469e3f1b2331acf166 (patch)
tree49af6a94f123b5bfda843e4e0e3b7e78b08402fa /conf/httpd.conf-example
parent599f92307226e156f58dc36e479764c0d1a1605d (diff)
Version the JS files.
Diffstat (limited to 'conf/httpd.conf-example')
-rw-r--r--conf/httpd.conf-example9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/httpd.conf-example b/conf/httpd.conf-example
index 378aa88a5..8ed6a9c81 100644
--- a/conf/httpd.conf-example
+++ b/conf/httpd.conf-example
@@ -16,6 +16,7 @@
# # on production servers these are run under fastcgi
# Options +ExecCGI
# AddHandler cgi-script .cgi
+# AllowOverride None
# </Directory>
#
# <Directory /home/yourname/fixmystreet/web-admin>
@@ -60,6 +61,14 @@ ProxyPassReverse /mapit/ http://mapit.mysociety.org/
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteRule /(.+) /$1 [L]
+# Performance things
+ExpiresActive On
+ExpiresByType text/css "access plus 10 years"
+ExpiresByType application/javascript "access plus 10 years"
+<Location /js/>
+ AddOutputFilter DEFLATE js
+</Location>
+
# Don't want jslib being passed to Catalyst
RewriteRule ^/jslib(.*) /jslib$1 [L,PT]