Matchu
ad43f58a07
So I broke the Download button when we switched to impress-2020.openneo.net, and I forgot to update the Amazon S3 config. But in addition to that, I'm making some code changes here, to make downloads faster: we now use exactly the same URL and crossOrigin configuration between the <img> tag on the page, and the image that the Download button requests, which ensures that it can use the cached copy instead of loading new stuff. (There were two main cases: 1. it always loaded the PNGs instead of the SVG, which doesn't matter for quality if we're rendering a 600x600 bitmap anyway, but is good caching, and 2. send `crossOrigin` on the <img> tag, which isn't necessary there, but is necessary for Download, and having them match means we can use the cached copy.) |
||
---|---|---|
.. | ||
app | ||
images | ||
server | ||
stories | ||
index.js |