From 82cc5f12306514d1f6831984be5bab8a49a11913 Mon Sep 17 00:00:00 2001 From: kevcenteno Date: Mon, 23 Sep 2024 17:25:27 -0400 Subject: [PATCH] Fix cloudflare pages redirect warnings --- static/_redirects | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/static/_redirects b/static/_redirects index 2b639f62c..9a3a282ae 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,17 +1,4 @@ -/maxmind-server-ip-addresses.xml /maxmind-server-ip-addresses/index.xml 302 -/GeoIP2-Enterprise-CSV_Example.zip /static/GeoIP2-Enterprise-CSV_Example.zip 301 -/fips-iso-map.csv /static/csv/fips-iso-map.csv 301 -/geoip-test-databases.tar.gz /static/geoip-test-databases.tar.gz 301 -/checksum.txt /static/checksum.txt 301 -/csv-files/:file /static/csv/:file 301 -/static/csv/codes/eu_country_list.csv /static/csv/codes/maxmind/eu_country_list.csv 301 -/static/csv/codes/ap_country_list.csv /static/csv/codes/maxmind/ap_country_list.csv 301 -/csv-files/:file /static/csv/:file 301 -/csv/:files /static/csv/:file 301 -/static/pdfs/:files /static/pdf/:file 301 -/minfraud-soap-*.wsdl /sattic/wsdl/minfraud-soap-:splat.wsdl 301 -/static/maxmind-region-codes.csv https://download.maxmind.com/download/geoip/misc/region_codes.csv 301 - +# RSS feed # The year needs to be hardcoded. A page for the new year's # release note won't exist until a new .md file is created in the # /content//release-notes folder for that new year @@ -19,3 +6,21 @@ /geoip/release-notes/rss.xml /geoip/release-notes/2024/index.xml 302 /minfraud/release-notes /minfraud/release-notes/2024 302 /minfraud/release-notes/rss.xml /minfraud/release-notes/2024/index.xml 302 + +# General - without splats or placeholders +# Redirects are more performant when redirects without splats/placeholders are above those with splats/placeholders +/checksum.txt /static/checksum.txt 301 +/fips-iso-map.csv /static/csv/fips-iso-map.csv 301 +/geoip-test-databases.tar.gz /static/geoip-test-databases.tar.gz 301 +/GeoIP2-Enterprise-CSV_Example.zip /static/GeoIP2-Enterprise-CSV_Example.zip 301 +/maxmind-server-ip-addresses.xml /maxmind-server-ip-addresses/index.xml 302 +/static/csv/codes/ap_country_list.csv /static/csv/codes/maxmind/ap_country_list.csv 301 +/static/csv/codes/eu_country_list.csv /static/csv/codes/maxmind/eu_country_list.csv 301 +/static/maxmind-region-codes.csv https://download.maxmind.com/download/geoip/misc/region_codes.csv 301 + + +# General - with splats and placeholders +/csv/:files /static/csv/:file 301 +/csv-files/:file /static/csv/:file 301 +/minfraud-soap-*.wsdl /sattic/wsdl/minfraud-soap-:splat.wsdl 301 +/static/pdfs/:files /static/pdf/:file 301