diff --git a/modules/govuk/templates/node/s_backend_lb/assets-carrenza.conf.erb b/modules/govuk/templates/node/s_backend_lb/assets-carrenza.conf.erb index 036d91935f0..b47aa4b13b2 100644 --- a/modules/govuk/templates/node/s_backend_lb/assets-carrenza.conf.erb +++ b/modules/govuk/templates/node/s_backend_lb/assets-carrenza.conf.erb @@ -95,17 +95,6 @@ server { } <%- end -%> - <%- if scope.lookupvar('::aws_migration') %> - set $upstream_static <%= @upstream_ssl ? 'https' : 'http' %>://static.<%= @app_domain %>; - <%- end %> - location = /static/a { - <%- if scope.lookupvar('::aws_migration') %> - proxy_pass $upstream_static; - <%- else %> - proxy_pass <%= @upstream_ssl ? 'https' : 'http' %>://static.<%= @app_domain %>; - <%- end %> - } - location /__canary__ { return 200; } diff --git a/modules/govuk/templates/static_extra_nginx_config.conf.erb b/modules/govuk/templates/static_extra_nginx_config.conf.erb index c74c4962201..fe310d6dcea 100644 --- a/modules/govuk/templates/static_extra_nginx_config.conf.erb +++ b/modules/govuk/templates/static_extra_nginx_config.conf.erb @@ -1,11 +1,3 @@ -location = /static/a { - expires -1; - add_header Last-Modified ""; - - default_type text/plain; - return 200 ''; -} - # 1stline use this URL in their zendesk template location = /static/gov.uk_logotype_crown.png { absolute_redirect off; diff --git a/modules/router/templates/assets_origin.conf.erb b/modules/router/templates/assets_origin.conf.erb index ac04f462307..00b8bcb4490 100644 --- a/modules/router/templates/assets_origin.conf.erb +++ b/modules/router/templates/assets_origin.conf.erb @@ -77,11 +77,6 @@ server { } <%- end -%> - set $upstream_static <%= @upstream_ssl ? 'https' : 'http' %>://static.<%= @app_domain %>; - location = /static/a { - proxy_pass $upstream_static; - } - location /__canary__ { proxy_pass $upstream_static; }