Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.5.5, 6.0.0-beta1
Description
The conditional statement 'if (resourceResponse.dataNeedsToBeWritten(attributes))' in PackageResource$newResourceResponse always turns true.
dataNeedsToBeWritten() method internally uses its own lastModified field, which is null (by default) and always returns true at that point resulting in getting a stream and processing it every time.
I think this ruins resource caching.
NOTE: The API document of dataNeedsToBeWritten() exclaims setLastModified() be called first.