From bca82f621fece65d80a805552b27f3443fc579c1 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sun, 6 Dec 2015 00:03:39 +0100 Subject: [PATCH] Add first attempt to improve caching and compression on uberspace --- source/.htpasswd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source/.htpasswd diff --git a/source/.htpasswd b/source/.htpasswd new file mode 100644 index 0000000..5994ef0 --- /dev/null +++ b/source/.htpasswd @@ -0,0 +1,13 @@ +--- +noindex: true +--- +# Compress files on the fly +AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript text/javascript + +# Aggressively cache assets, rely on ETAGs for non-cache busted stuff + + ExpiresActive On + ExpiresDefault "access plus 1 year" + + +Alias /favicon.ico /images/favicon.ico