You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to cache bust API URLs to force clients to update cached versions of content. For example, when we rewrote schedules in #323, it would have been ideal to cache bust the entire courses API and all schedules.
The change would be made in CourseService.ts. Specifically, the url in this function:
should get a +'?v'+cache_num or something like that. This cache_num should be stored somewhere and incremented by a bust_client_cache management command. cache_num can be injected into index.html somewhere for us to pick up, since that page is never cached as it's only seen by logged-in users.
(Currently the only such thing we do is we manually have set ?bust=v4 in index.html and config.ts for loading core javascript static resources. This does not include API calls.)
The text was updated successfully, but these errors were encountered:
We should be able to cache bust API URLs to force clients to update cached versions of content. For example, when we rewrote schedules in #323, it would have been ideal to cache bust the entire courses API and all schedules.
The change would be made in
CourseService.ts
. Specifically, the url in this function:should get a
+'?v'+cache_num
or something like that. Thiscache_num
should be stored somewhere and incremented by abust_client_cache
management command.cache_num
can be injected intoindex.html
somewhere for us to pick up, since that page is never cached as it's only seen by logged-in users.(Currently the only such thing we do is we manually have set
?bust=v4
inindex.html
andconfig.ts
for loading core javascript static resources. This does not include API calls.)The text was updated successfully, but these errors were encountered: