|Subject:||LWP::UserAgent::mirror should compare Last-Modified header to timestamp|
Yesterday I discovered that $ua->mirror does not work the way I expected in the case when the HTTP Server *ignores* the If-Modified-Since header. If the HTTP server sends a 200 response and a Last-Modified header of a time that is older than the local copy, mirror overwrites the local file with the older downloaded content. The documentation says: If the document on the server has not changed since this time, then nothing happens. Clearly the behaviour is not exactly matching the documentation. The question is, if you see it as a bug and how you would like it being fixed. I would think that the downloaded content should be discarded when the Last-Modified header signifies an older file than the local copy.