How can we use the service worker to implement a strategy that only use cache if resource from the server is not changed? For example, we are calling a GET request to fetch resource, instead of calling it every time, we prefer to be able to use the cache if there's way to know that the resource is not changed.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks author for the sharing.
How can we use the service worker to implement a strategy that only use cache if resource from the server is not changed? For example, we are calling a GET request to fetch resource, instead of calling it every time, we prefer to be able to use the cache if there's way to know that the resource is not changed.