-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify modulepreload behaviour in Firefox / Safari #354
Comments
Subscribing, as I would love to be proven wrong! |
I did some tests against Firefox today (still have to check Safari), and found the following:
I still need to do the Safari tests, but based on the above at least my plan for now is to update es-module-shims with a new configuration Once I've finished the above I'll update the blog post as well. I believe the change that happened here was Firefox supporting |
Unfortunately by the nature of browser module loading, the flat preloads in the non-expires case will just result in a "304 waterfall". In theory a 304 waterfall should be quicker than a full content waterfall, but it's still a waterfall which somewhat defeats the point sadly. At least both Firefox and Safari have now landed modulepreload since this was opened! |
In Safari, we have a better story thankfully - and there is no duplicate request at all with full cache sharing. In Safari The waterfall is thus entirely avoided in all webkit engines. In theory the choice between |
Update on the expires header in Firefox - I was misreading the tests, and expires are fully respected. It's only the case of sending an |
Marking as completed, as I've verified these cases are working well for the most part and as expected. Any issue here can probably be attributed to #359 instead. |
@Rich-Harris if you have any counter examples to the above please do let me know though, but it seems to be working to me. Yes the entry will appear twice in the network panel, but the second time it should at least appear as cached. |
Apparently browsers may have changed their behaviour, it would be good to verify this is still working correctly or needs adjustment.
The text was updated successfully, but these errors were encountered: