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

disable register's all entries #752

Open
abdo-spices opened this issue Sep 7, 2024 · 2 comments
Open

disable register's all entries #752

abdo-spices opened this issue Sep 7, 2024 · 2 comments

Comments

@abdo-spices
Copy link

in sw all entries are saved
i don't this what if i have 1000 page as docs
i want to just cashe what's is already downloaded

min reproduction
https://github.com/abdo-spices/pwa-min-prod

@userquin
Copy link
Member

userquin commented Sep 10, 2024

If we want to cache only visited pages you need to use runtime caching with network first. You also need to disable injection point.

Your app Will not work when offline when the user visit a page missing in the cache.

You will need to use a custom sw to create the caches, workbox wont be able to create the cache and add the assets to the cache on first visit.

@abdo-spices
Copy link
Author

refence pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants