Hi, On Sun, 31 Mar 2019, Christian Buhtz wrote: > As developer of a RSS/Atom newsreader I found problems with the RSS-Feed > offerd > by Debian-Tracker. > > The 'Last-Modified' date is ignored when used in a second request in the 'If- > Modified-Since' field. > When there are only some seconds between two requests, the expected behaviour, > when using the date from the first request directly, is that in the second > request should no feed entries. > > In my newsreader I use Pythons 'aiohttp' package but in that example below I > use 'feedparser' for easier handling. The problem is reproducable with both. > > Side note: I know (and do) that as a workaround I can check the "published" > dates of each entry and delete them if my newsreader still have them. But this > is Debian and I am hopefull that this can be improved.
We are relying on a Django object to implement the feed so if anything, this should be improved at this level: https://docs.djangoproject.com/en/1.11/ref/contrib/syndication/ I would suggest to file your suggestion to the Django developers. Unless Django expects us to setup a ConditionGETMiddleware to replace the answer by a NotModified answer: https://docs.djangoproject.com/en/1.11/ref/middleware/#module-django.middleware.http We could enable this but I wonder if it would have other unexpected side-effects in other parts of the code. Cheers, -- Raphaël Hertzog ◈ Debian Developer Support Debian LTS: https://www.freexian.com/services/debian-lts.html Learn to master Debian: https://debian-handbook.info/get/