author Andrew Osmond <aosmond@mozilla.com>
Thu, 07 Dec 2017 08:28:28 -0500
changeset 395483 1a1ebee6fb8ca96748db96d5b5651460c20c0f38
parent 377819 0145883aea3a74740298a2dc3072e4a4e80c8570
child 402274 2d0766c3e7c94d7af3e40b8069aa8e3d6d4071aa
permissions -rw-r--r--
Bug 1419889 - Don't force the image cache to validate if it hasn't started yet. r=tnikkel imgLoader::ValidateEntry would aggressively determine an entry has expired, even when the request hasn't yet begun. This is because the expiration time for the entry was not set unless it was for a channel which supports caching. Now we set the expiration time for all channels, and if it doesn't support caching, it just expires at the current time when imgRequest::OnStartRequest is called. Additionally, imgLoader::ValidateEntry will not consider the expiration time in the entry until it is non-zero.

# See http://pep8.readthedocs.io/en/latest/intro.html#configuration
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402
max-line-length = 99
exclude =