Comments (1)
If you're aggressively caching and reusing content, I'd recommend using runtime logic, like CSS media queries, to adjust the display of your site, rather than having your web server return different responses for different types of clients.
Otherwise, if you need to have different responses for different types of clients, using a less aggressive caching policy would be your best bet, so that things just fall back to the cache and go network-first.
sw-toolbox
won't cache anything by default, so if you're seeing content cached more aggressively than you expect, it must be due to your configuration. Please re-examine that.
from sw-toolbox.
Related Issues (20)
- Caches gets deleted on page reload HOT 1
- Allow for selection of more request properties like headers than just the URL HOT 2
- googlechrome.github.io returns 404
- Website for this repo has been 404 HOT 1
- Repo URL is broken HOT 1
- The fetchAndCache function has a bug on mobile phones HOT 1
- Release 3.6.1 to NPM HOT 1
- Bug: Toolbox does not handle quote exceeded errors HOT 13
- Consider bumping `path-to-regexp`. HOT 1
- Cache with maxAgeSeconds option not expiring for cacheFirst strategy
- how can I precache some url with cookie ?
- Notify people about Workbox ("The next version of sw-precache & sw-toolbox") HOT 1
- Usage and api links broken in Index.md
- What is the use of indexDb if sw-toolbox is validating freshness of cache via date header
- service worker error HOT 1
- toolbox.router.get function not working in safari ios
- Missing documentation for successResponses HOT 1
- Documentation pages have corrupted links to gh-pages!
- Why do I get TypeError failed to fetch on every page refresh HOT 4
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 sw-toolbox.