diff --git a/spec/test-outputs/assets-integration.out.vcl b/spec/test-outputs/assets-integration.out.vcl index b18ecb9f..294b914a 100644 --- a/spec/test-outputs/assets-integration.out.vcl +++ b/spec/test-outputs/assets-integration.out.vcl @@ -68,11 +68,6 @@ sub vcl_recv { error 801 "Force SSL"; } - # Serve and log an empty response for analytics purposes - if (req.url ~ "^/static/a\?") { - error 802 "OK"; - } - # Serve from stale for 24 hours if origin is sick set req.grace = 24h; @@ -176,14 +171,6 @@ sub vcl_error { return (deliver); } - if (obj.status == 802) { - set obj.http.Content-Type = "text/plain"; - set obj.http.Access-Control-Allow-Origin = "*"; - set obj.status = 200; - synthetic {""}; - return(deliver); - } - # Serve stale from error subroutine as recommended in: # https://docs.fastly.com/guides/performance-tuning/serving-stale-content # The use of `req.restarts == 0` condition is to enforce the restriction diff --git a/spec/test-outputs/assets-production.out.vcl b/spec/test-outputs/assets-production.out.vcl index 0750d5e3..c99090f9 100644 --- a/spec/test-outputs/assets-production.out.vcl +++ b/spec/test-outputs/assets-production.out.vcl @@ -169,11 +169,6 @@ sub vcl_recv { error 801 "Force SSL"; } - # Serve and log an empty response for analytics purposes - if (req.url ~ "^/static/a\?") { - error 802 "OK"; - } - # Serve from stale for 24 hours if origin is sick set req.grace = 24h; @@ -328,14 +323,6 @@ sub vcl_error { return (deliver); } - if (obj.status == 802) { - set obj.http.Content-Type = "text/plain"; - set obj.http.Access-Control-Allow-Origin = "*"; - set obj.status = 200; - synthetic {""}; - return(deliver); - } - # Serve stale from error subroutine as recommended in: # https://docs.fastly.com/guides/performance-tuning/serving-stale-content # The use of `req.restarts == 0` condition is to enforce the restriction diff --git a/spec/test-outputs/assets-staging.out.vcl b/spec/test-outputs/assets-staging.out.vcl index f8ea4868..5f765ccd 100644 --- a/spec/test-outputs/assets-staging.out.vcl +++ b/spec/test-outputs/assets-staging.out.vcl @@ -169,11 +169,6 @@ sub vcl_recv { error 801 "Force SSL"; } - # Serve and log an empty response for analytics purposes - if (req.url ~ "^/static/a\?") { - error 802 "OK"; - } - # Serve from stale for 24 hours if origin is sick set req.grace = 24h; @@ -328,14 +323,6 @@ sub vcl_error { return (deliver); } - if (obj.status == 802) { - set obj.http.Content-Type = "text/plain"; - set obj.http.Access-Control-Allow-Origin = "*"; - set obj.status = 200; - synthetic {""}; - return(deliver); - } - # Serve stale from error subroutine as recommended in: # https://docs.fastly.com/guides/performance-tuning/serving-stale-content # The use of `req.restarts == 0` condition is to enforce the restriction diff --git a/vcl_templates/assets.vcl.erb b/vcl_templates/assets.vcl.erb index 15501d4b..81698f0d 100644 --- a/vcl_templates/assets.vcl.erb +++ b/vcl_templates/assets.vcl.erb @@ -188,11 +188,6 @@ sub vcl_recv { error 801 "Force SSL"; } - # Serve and log an empty response for analytics purposes - if (req.url ~ "^/static/a\?") { - error 802 "OK"; - } - # Serve from stale for 24 hours if origin is sick set req.grace = 24h; @@ -347,14 +342,6 @@ sub vcl_error { return (deliver); } - if (obj.status == 802) { - set obj.http.Content-Type = "text/plain"; - set obj.http.Access-Control-Allow-Origin = "*"; - set obj.status = 200; - synthetic {""}; - return(deliver); - } - # Serve stale from error subroutine as recommended in: # https://docs.fastly.com/guides/performance-tuning/serving-stale-content # The use of `req.restarts == 0` condition is to enforce the restriction