Skip to content
Snippets Groups Projects
Commit 6e7ce556 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Restore original intent - assets / caching settings are mandatory

parent aab05253
No related branches found
No related tags found
No related merge requests found
......@@ -298,10 +298,9 @@ class Module
}
}
/** @psalm-var \SimpleSAML\Configuration $assetConfig */
$assetConfig = $config->getOptionalConfigItem('assets', null);
/** @psalm-var \SimpleSAML\Configuration $cacheConfig */
$cacheConfig = $assetConfig ?: $assetConfig->getOptionalConfigItem('caching', null);
$assetConfig = $config->getConfigItem('assets');
$cacheConfig = $assetConfig->getConfigItem('caching');
$response = new BinaryFileResponse($path);
$response->setCache([
// "public" allows response caching even if the request was authenticated,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment