loomchild / sojourner-web

FOSDEM conference companion PWA
https://sojourner.rocks
GNU Affero General Public License v3.0
51 stars 6 forks source link

Reminder to refresh schedule, based on HEAD #5

Closed loomchild closed 5 years ago

loomchild commented 6 years ago

This seems to work with date in the past: http https://www.w3.org 'If-Modified-Since:Sun, 7 Jan 2018 13:00:00 GMT'

My app uses the "if-modified-since" HTTP header to determine if the schedule actually changed and download the new version. If the server automatically regenerates it every x minutes, then this optimization is useless. So I would also recommend that all dynamic data should be provided in separate APIs/files.

loomchild commented 5 years ago

http head https://fosdem.loomchild.net/2019/schedule/xml

loomchild commented 5 years ago

I can store update date and check last-updated.

https://github.com/axios/axios/issues/1324