Fix flutter web app not respecting assets path when in non-root folder (#96774)

This commit is contained in:
nicolasvac 2022-03-11 00:50:16 +01:00 committed by GitHub
parent 0d4b73b2e8
commit 201a64c98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -136,7 +136,6 @@ Future<void> runWebServiceWorkerTest({
});
expectRequestCounts(<String, int>{
'': 1,
// Even though the server is caching index.html is downloaded twice,
// once by the initial page load, and once by the service worker.
// Other resources are loaded once only by the service worker.
@ -183,7 +182,6 @@ Future<void> runWebServiceWorkerTest({
expectRequestCounts(<String, int>{
'index.html': 2,
'flutter_service_worker.js': 2,
'': 1,
'main.dart.js': 1,
'assets/NOTICES': 1,
'assets/AssetManifest.json': 1,
@ -210,7 +208,6 @@ Future<void> runWebServiceWorkerTest({
});
expectRequestCounts(<String, int>{
'': 1,
'index.html': 2,
// We still download some resources multiple times if the server is non-caching.
'main.dart.js': 2,
@ -260,7 +257,6 @@ Future<void> runWebServiceWorkerTest({
'flutter_service_worker.js': 1,
});
expectRequestCounts(<String, int>{
'': 1,
'index.html': 2,
'flutter_service_worker.js': 2,
'main.dart.js': 2,

View File

@ -518,7 +518,6 @@ class WebServiceWorker extends Target {
final String serviceWorker = generateServiceWorker(
urlToHash,
<String>[
'/',
'main.dart.js',
'index.html',
'assets/NOTICES',