4 ms·
> it's kind of difficult (unpractical) to set different caching policy for different kind of files if you're hosting many different sites, or you're on shared h
by eberkund 9y ago
> it's kind of difficult (unpractical) to set different caching policy for different kind of files if you're hosting many different sites, or you're on shared hosting
No it's not. In Apache and Nginx (and I assume any other half decent web server) it is very easy to specify different cache times for each file extension. Same on shared hosting (.htaccess)
- finchisko 9y ago>Same on shared hosting (.htaccess) apache yes, but what about nginx? And there are many other ways, how to host your site (Amazon S3,...). Also by unpractical I mean you have to have access to the server (ssh...). IMO it should be more concern of an app then server. But I'm not advocate for service worker for static resource caching (for websites).
- eberkund 9y agoPretty much all the shared hosts I've seen use Apache (or lighttpd) specifically because of htaccess files.