4 ms·
You could also run server-rendering with a service worker. There's nothing about a service worker that means it only works with SPAs. It basically just gives yo
by nicoburns 8y ago
You could also run server-rendering with a service worker. There's nothing about a service worker that means it only works with SPAs. It basically just gives you control over caching behaviour...
- callalex 8y agoYou can also control caching behavior by just setting the headers correctly in the first place. I think the takeaway here is that sometimes SPA frameworks make the behavior “just work” in more cases when the developer doesn’t put any thought into correct cache handling.