mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 02:29:07 +02:00
fix for content mismatch error
This commit is contained in:
@@ -125,10 +125,13 @@ class Grav extends Container
|
||||
}
|
||||
}
|
||||
Utils::download($medium->path(), false);
|
||||
} else {
|
||||
}
|
||||
|
||||
// has an extension, try to download it...
|
||||
if (isset($path_parts['extension'])) {
|
||||
$download = true;
|
||||
// little work-around to ensure .css and .js files are always sent inline not downloaded
|
||||
if (Utils::endsWith($uri->basename(), ['.css', '.js'])) {
|
||||
if (in_array($path_parts['extension'], ['.css', '.js'])) {
|
||||
$download = false;
|
||||
}
|
||||
Utils::download($page->path() . DIRECTORY_SEPARATOR . $uri->basename(), $download);
|
||||
|
||||
Reference in New Issue
Block a user