diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-09-26 11:22:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-09-26 11:22:47 +0100 |
commit | 7d5b484c57aeb0c06b4a62128af136919902a1c2 (patch) | |
tree | aa76cefb7990781f5405a665656bff20a017b2a9 | |
parent | 4b1f88cd9aa1fc244ec4542d164496d322f2f0d6 (diff) |
Add deflate/header config for jslib, same as js, remove typo.
-rwxr-xr-x | bin/pre-install-as-root | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pre-install-as-root b/bin/pre-install-as-root index 0810ea6ae..3f7fb291f 100755 --- a/bin/pre-install-as-root +++ b/bin/pre-install-as-root @@ -223,7 +223,12 @@ add_website_to_apache() { Alias /admin/ $REPOSITORY/web-admin/ - Alias /jslib/ $REPOSITORY/commonlib/jslib/" + # Set up commonlib jslib directory + Alias /jslib/ $REPOSITORY/commonlib/jslib/ + <Location /jslib> + AddOutputFilter DEFLATE js + Header append Cache-Control "no-transform" + </Location> LogLevel info ErrorLog $LOG_DIRECTORY/error.log |