X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/82b50eda860cacb73ec72233394cf7cd0bb6bfa5..48217a85b90d2c4b3378b65206b6c5e2686c2a94:/cookbooks/web/templates/default/apache.frontend.erb diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 0989ea791..aa2aa1d98 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -30,6 +30,11 @@ ExpiresActive On RewriteEngine on + # + # Configure on the fly compression + # + AddOutputFilterByType DEFLATE image/svg+xml + # # Add the unique ID to the request headers # @@ -47,6 +52,12 @@ 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 #