Comments (7)
@pavankumarkatakam You are right, it's a bad thing. Unfortunately, currently there is no right way to deal with it, but I am currently working on a next version (v3
branch, not usable yet) where will be implemented automatic cache busting.
from offline-plugin.
Okay, I just pushed an update to v3
branch. It's still unstable, but now you can try it (do not use changed
update strategy yet).
First of all, it now automatically adds cache-bust params to all requests. It looks like this http://localhost:8080/?__uncache=v3_2016-03-20%2011%3A13%3A05
and depends on what updateStrategy
you are using.
Seconds is that SW is now always uses ignoreSearch
mode, so you do not have to have same request params in HTML and inside SW. So if your requests in HTML looks like this main.js?78787827878
it must be fine and they will catch latest version from SW anyway.
Also, you can try to play with rewrites
option to rewrite names of your assets to main.js?78787827878
, but as I said there is no way to disabled built-in cache-busting params passing.
from offline-plugin.
Also full CHANGELOG is here: https://github.com/NekR/offline-plugin/blob/v3/CHANGELOG.md
from offline-plugin.
Hi @NekR , I just checked that now the hash tags are appending, issue is cleared. And on thing i want to know that is there any relation for this plugin and google sw-precache.
from offline-plugin.
sw-precache
and sw-toolbox
are cool tools for SW, they are developer by Google engineers so you may expect high quality there. About relation, there is no relation except that both offline-plugin
and sw-precache
are tools for ServiceWorkers. While offline-plugin
is focused on a webpack
(because I use it), sw-precache
is focused on a more general use, i.e. with gulp
.
/cc @jeffposnick
from offline-plugin.
Hi @NekR , in sw-precache
there are three strategies like cache-first
and network-first
, so my question is how you are building the sw.js
using which strategy
from offline-plugin.
cache-first
from offline-plugin.
Related Issues (20)
- Question - SW caching all assets site-wide HOT 1
- In Angular 9, files inside directories are not being cached
- Ideas for Documentation to Help with Troubleshooting
- Some files missing in cache on SW first load/install HOT 1
- Caching subpath urls
- Caching fails to download assets in Chrome 85 HOT 1
- Issue with default path
- [question] Having Multiple runtime installations
- Problem with Webpack 5.0 HOT 17
- Micro Front-ends structure with single-spa
- Auto update doesn't work
- After removing redux-offline, how do we ensure that client's who have old versions get the latest update?
- `onInstalling` doesn't seem to be called, because `ignoreInstalling` is always true
- offline-plugin does not serve assets from service worker
- Webpack 5 compatibility HOT 3
- The "path" argument must be of type string. Received undefined HOT 4
- Cache Images from AWS S3
- Pass ServiceWorker version to the install events
- Terser Plugin issue while building with webpack-cli HOT 3
- upgrade ejs package | CVE-2022-29078 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offline-plugin.