diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 91ad1090ca13..e48bb9dd3592 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -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.