Skip to content
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

[Bug report] Head resources are loaded again when switching pages #1268

Closed
Mister-Hope opened this issue Feb 21, 2023 · 5 comments · Fixed by #1314
Closed

[Bug report] Head resources are loaded again when switching pages #1268

Mister-Hope opened this issue Feb 21, 2023 · 5 comments · Fixed by #1314
Assignees
Labels
enhancement New feature or request package:client

Comments

@Mister-Hope
Copy link
Member

Description

When users set js and css resources through head option in config file, switching pages will cause these resources to relead.

I think this should be bug as we should diff the head list and try to avoid upgrading the unchanged one

Reproduction

https://dromara.org/fast-request/

Used Package Manager

npm

System Info

Not related
@zuihou
Copy link

zuihou commented Apr 14, 2023

Refresh Page will also cause these resources to relead.

@Mister-Hope
Copy link
Member Author

Refresh Page will also cause these resources to relead.

Why isn't that expected?

@digital-codes
Copy link

Should normally be handled by the browser cache. You shouldn't see reloads in production mode. Browser dev mode has cache disabled frequently

@Mister-Hope
Copy link
Member Author

So why do you think current behaviour "bypass" browser cache?

@digital-codes
Copy link

Only when using browser dev mode. I am fine with current behavior, was just commenting..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package:client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants