Commit e024ecde authored by stmh's avatar stmh Committed by Steven Jones
Browse files

Issue #2822239 by rgpublic, stmh, Steven Jones: Wrong Content-Length header...

Issue #2822239 by rgpublic, stmh, Steven Jones: Wrong Content-Length header sent when used in conjunction with responsive image styles
parent 30a602e9
...@@ -176,6 +176,11 @@ class ImageAPIOptimizePipeline extends ConfigEntityBase implements ImageAPIOptim ...@@ -176,6 +176,11 @@ class ImageAPIOptimizePipeline extends ConfigEntityBase implements ImageAPIOptim
foreach ($this->getProcessors() as $processor) { foreach ($this->getProcessors() as $processor) {
$processor->applyToImage($image_uri); $processor->applyToImage($image_uri);
// The file may have changed on disk after each processor has been
// applied, and PHP has a cache of file size information etc. so clear
// it here so that later calls to filesize() etc. get the correct
// information
clearstatcache();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment