[openstreetmap/openstreetmap-website] Certain Static (?) files can never receive a 304 Not Modified (#2262)

alexkemp9 notifications at github.com
Sun Jun 16 20:49:18 UTC 2019


*Background*    
Conducting a simple refresh (f5) on a recently downloaded [test map page](https://www.openstreetmap.org/way/17236956) causes only half (10 out of 21) of the files to give a `304 Not Modified`. Obviously *Not Good* both for the user (slow) plus OSM (increased bandwidth + load).

Some of those files may well be dynamic, but some are clearly static. Because of the wide range of *Response Header* symptoms + my ignorance these are individual filetype reports to allow those with a working knowledge of the code to decipher it all. Please also note that since these tests the [`Last-Modified` value](https://github.com/openstreetmap/operations/issues/305) has been re-enabled & `eTag` disabled.

*The meat*    
A disparate bunch of (probably) static files.    

- 3 x CSS    
eg [https://www.openstreetmap.org/assets/screen-ltr-….css](https://www.openstreetmap.org/assets/screen-ltr-56c86771fc241440e36145999d4069209b6ea9ce7e508d48090ae525920df422.css)
- 1 x GIF    
eg [https://www.openstreetmap.org/assets/searching-….gif](https://www.openstreetmap.org/assets/searching-d2110831ff86cb780e0911cd005e82482bfc71a0c626b56812ece6d52db2e6e0.gif)
- 3 x JS    
eg [https://www.openstreetmap.org/assets/application-….js](https://www.openstreetmap.org/assets/application-7dc66b028055a8a9bfe43cf7d19b6a06b3a64a54efcbb1ae996f40ae3d5209c1.js)
- 7 x PNG    
eg [https://www.openstreetmap.org/assets/directions-….png](https://www.openstreetmap.org/assets/directions-40b86df47e67e386cb848cb45095c340f45a8283778f9205e3ae9cc1b371dc65.png)
- 2 x SVG    
eg [https://www.openstreetmap.org/assets/osm_logo-….svg](https://www.openstreetmap.org/assets/osm_logo-0e91a8acd0a92c1bf14204322322e57c65c2a7e318fec6907252fed929b7d6d3.svg)

- `Last-Modified`: not present    
- `eTag`: not present    
- `Expires`: Mon, 15 Jun 2020 13:46:41 GMT
- Request: (no IM, INM, IMS, etc. so no 304)    

*Related*    
The tiles supplied by *toothless* (eg https://b.tile.openstreetmap.org/18/130245/85447.png) are all dynamic yet all have a strong `eTag` (matched by the `If-None-Match`) + `Expires` and thus get cached + a 304.

*Extra*    
See bottom of [this Diary page](https://www.openstreetmap.org/user/alexkemp/diary/368814) for fuller details.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2262
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190616/d8a4e48d/attachment-0001.html>


More information about the rails-dev mailing list