[openstreetmap/openstreetmap-website] The 1x1 GIF pixels do not receive a 304 Not Modified (#2265)

alexkemp9 notifications at github.com
Sun Jun 16 22:54:39 UTC 2019

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`.

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*    
(probably) a dynamic GIF file. This report is actually here to say *“WHAT THE HELL DO YOU THINK YOU ARE DOING SENDING A WEB-BUG TO MY BROWSER, YOU SCUMBAG?”*, but is dressed up as a technical report    

2 x GIF    
eg [https://piwik.openstreetmap.org/piwik.php?action_name=…](https://piwik.openstreetmap.org/piwik.php?action_name=Way:%20Handel%20Street%20(17236956)%20|%20OpenStreetMap&idsite=1&rec=1&r=930424&h=14&m=46&s=46&url=https://www.openstreetmap.org/way/17236956&_id=cb6b1d8c931daa74&_idts=1560390184&_idvc=2&_idn=0&_refts=0&_viewts=1560692774&send_image=1&cookie=1&res=1366x768&gt_ms=114&pv_id=W3ovWr)

- `cache-control`: no-store
- `eTag`: none    
- `Expires`: none
- `Last-Modified`: none    
- Request: (simply nothing, so no 304)    

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` + `Cache-Control` and thus get cached + a 304.

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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190616/e1fce2c8/attachment.html>

More information about the rails-dev mailing list