13 | TL;DR The interesting code is in scripts/bootstrap.js 14 |
15 | 16 |17 | This page loads 5 images. Three are specified in a remote manifest.json file, 18 | one is added from the img tag in the page and the final one comes from 19 | an object created in JavaScript. These are the three ways to get images. 20 |
21 | 22 |23 | Image 1 should never cache. That is, the headers that come back from the 24 | server should set no-cache for it. This triggers a warning, because we can't 25 | save the image for offline. 26 |
27 | 28 |29 | All other images are given somewhere between 60 and 180 seconds as their 30 | max-age. You can see the images saved in the filesystem along with an additional file 31 | stored in the root which contains the details on all files we've saved. 32 |
33 | 34 |35 | If the manifest or a file is removed, or a file has expired, the browser will request it 36 | again from the server. If it is not possible to retrieve a new copy of the 37 | file then the old one is served. 38 |
39 |