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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #16 from [email protected] ---
(In reply to David Greengas from comment #14)
> 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.

Yes what I noticed is that the picture of the day to me updates only if I have
my computer turned on at midnight. If for 3 days my computer is not turned on
(or sleeping) at midgnight, then the picture of the day would stay the same for
3 days.

On the other hand, on plasma login manager the picture of the day (always bing)
is always up to date!

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

Reply via email to