Skip to content
Snippets Groups Projects
Commit e024ecde authored by Stephan Huber's avatar Stephan Huber 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
Branches
Tags 8.x-2.0-alpha2
No related merge requests found
......@@ -176,6 +176,11 @@ class ImageAPIOptimizePipeline extends ConfigEntityBase implements ImageAPIOptim
foreach ($this->getProcessors() as $processor) {
$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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment