Closed ahus1 closed 7 years ago
... the caching of other files should also be limited, but not necessarily to the extent of the service worker.
Aktueller Vorschlag - ETag erhalten, der Client darf die Inhalte eine Stunde lang nutzen, und muss anschließend Fragen, ob sich die Ressource geändert hat.
Das gilt nur für die Resourcen der eigentlichen "app", nicht für die geladenen Daten der Konferenz (Vorträge, etc.).
Vorschlag für Puppet (ab Zeile 172):
# allow .htaccess files in PWA directories to configure i.e. caching headers
directories => [
{ path => '/data/dukecon/latest/pwa',
allow_override => ['All'],
},
],
Und ich füge dann ins Projekt ein:
#.htaccess
...
Cache-Control "max-age=3600, must-revalidate"
...
Done. Works for me.
The following URL https://latest.dukecon.org/pwa/javaland/2018/service-worker.js should have caching disabled to that browsers load the file on every visit so that the offline application is refreshed.
@ascheman - can you help?
I'm struggling with Puppet to have a local setup (see #26), so I don't have the possibility to try this myself.
Would you allow .htaccess configuration for the pwa to allow this? Could be something like:
(see: google books link)