]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/apache.frontend.erb
Enable gzip compression of SVG assets
[chef.git] / cookbooks / web / templates / default / apache.frontend.erb
index 0989ea791c71cb147d51e59e9497288ba7f26c4d..aa2aa1d98dc38565c28aaea24ca6a210f0b229a5 100644 (file)
   ExpiresActive On
   RewriteEngine on
 
+  #
+  # Configure on the fly compression
+  #
+  AddOutputFilterByType DEFLATE image/svg+xml
+
   #
   # Add the unique ID to the request headers
   #
   RewriteCond %{HTTP_USER_AGENT} tilesAtHome
   RewriteRule . - [F,L]
 
+  #
+  # Block changeset scraper
+  #
+  RewriteCond %{HTTP_USER_AGENT} "OSMApp Tuner"
+  RewriteRule . - [F,L]  
+
   #
   # Block requests for the old 404 map tile
   #