Bug 1954641 - Part 2: Do not cache inline scripts. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D242317
This commit is contained in:
@@ -3059,6 +3059,10 @@ ScriptLoader::CacheBehavior ScriptLoader::GetCacheBehavior(
|
||||
return CacheBehavior::DoNothing;
|
||||
}
|
||||
|
||||
if (aRequest->GetScriptLoadContext()->mIsInline) {
|
||||
return CacheBehavior::DoNothing;
|
||||
}
|
||||
|
||||
if (!aRequest->mURI->SchemeIs("http") && !aRequest->mURI->SchemeIs("https")) {
|
||||
// Internal resources can be exposed to the web content, but they don't
|
||||
// have to be cached.
|
||||
|
||||
Reference in New Issue
Block a user