Comments (3)
I tried moving it to CF Pages (which would be the easiest option given the existing _redirects
file and such), but we cannot do that since there are several files that are over the 25MB limit.
Instead, I then tried uploading these files to R2 (bucket covid-19
) and made that bucket publicly available at https://covid.owid.io.
In addition, I set up Bulk redirects and Response header transform rules in the Cloudflare dashboard, to match _headers
and _redirects
as closely as possible.
That seems to have worked pretty well.
There are a few slight differences:
- I couldn't replicate the code-200 redirects from Netlify, so instead these are 301s now.
- I checked, and both CF and DO return
Access-Control-Allow-Origin: *
headers, but only if anOrigin
header is present on the header.
Outstanding steps:
- Test that explorer files load just fine from covid.owid.io
- Copy these bulk redirects and transform rules over to apply to covid.ourworldindata.org
- Update the existing on-deploy workflow to instead upload these files to R2.
- Switch covid.ourworldindata.org over to point to R2.
- Remove the
_redirects
and_headers
files, since redirects and headers will have to be set up differently in the future.
from covid-19-data.
Sounds good to me. Without diving into it too much it could be that some scripts break if we change the status code of redirects but at this point I think this is no big deal. Sounds good to me!
from covid-19-data.
This is mostly done now, just keeping this issue open until #2820 is merged with some cleanup work.
from covid-19-data.
Related Issues (20)
- data: Vac: Switzerland and Liechtenstein HOT 2
- data: Covid recovered cases HOT 1
- data: Australia hospitalised cases - sudden rise in latest data point, unsupported by other sources
- data: Vac: Honduras HOT 4
- data: Data Update ceases HOT 2
- data: WHO reporting anomaly for South Korea HOT 1
- bug: wrong numbers from CoVariants HOT 1
- data: cases, deaths, severe cases (ICU) HOT 1
- data: Swedish COVID-19 Booster doses appear to be too high / wrong. HOT 3
- data: cases_deaths pipeline with data from WHO HOT 1
- data: Who does not report data from Paraguay HOT 1
- check: COVID numbers HOT 1
- fix: relax day tolerance check from case/death data from the WHO HOT 1
- data: Appears like your deaths data is now weekly? HOT 1
- Vac data: Ireland
- data: Missing covid data for many countries in EU HOT 2
- data: cumulative count of deaths and cases
- data: new zealand data looks odd HOT 2
- data: Singapore hospitalizations run for a limited period only HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from covid-19-data.