https://bugs.kde.org/show_bug.cgi?id=463345

--- Comment #14 from David Greengas <[email protected]> ---
I was looking at the Bing POTD archive at https://bingwallpaper.anerg.com/uk

I looked at one of the images and in web developer tools to see if there is a
special header that tells the client that it did not change like a
cache-control header.

I noticed that the web developer tools leverage the If-Modified-Since header.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/If-Modified-Since

I looked at the last-modified header in the response and increased the
Is-Modified-Since time by 1 minute. Instead of returning the picture, it
returned a 304 Not Modified error.

As I understand the code for Bing POTD, it creates a timer for midnight local
time that runs every 24 hours. If there is an error, it adds 1 hour for today's
timer and repeats.

If we leverage the Is-Modified-Since header to use the modify time on the last
file (logic may be there already), then would the failed requests cause a retry
rather than current functionality where a success is returned, but may return
the previous day's photo.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to