Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Remove /static/a endpoint
Browse files Browse the repository at this point in the history
The code for this was removed from static in
alphagov/static#2152 and thus this endpoint is
not used anymore. The 802 status response in this host was only used by
this endpoint so can also be removed.
  • Loading branch information
kevindew committed May 6, 2020
1 parent 1193e8b commit 4b85e7f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 52 deletions.
13 changes: 0 additions & 13 deletions spec/test-outputs/assets-integration.out.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions spec/test-outputs/assets-production.out.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions spec/test-outputs/assets-staging.out.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions vcl_templates/assets.vcl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b85e7f

Please sign in to comment.