Open messa opened 4 years ago
@encukou The Naucse API is generated as static site, right? Would it be possible to add some "build timestamp" value so it could be easily detected that something changed without having to HEAD many files instead?
I opened https://github.com/pyvec/naucse/issues/28 for that.
Would a webhook notification for each build help as well?
The API now gives you an etag for each course.
(You could also use the last commit of the gh-pages
branch of pyvec/naucse.python.cz as an etag for the whole site, but this will only work as long as naucse is a static site.)
Currently course structure and lesson contents (list of materials...) are retrieved from course API (i.e. naucse API) only when the backend service is starting. So users don't see any changes to the API data source made after that.
(Pyvec Slack: https://pyvec.slack.com/archives/C7FAR7HBL/p1573724473003500)