Browser-side cache invalidation for authentik doesn't trigger after rebuild #42
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elbforge/elf-infra#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While Authentik does use ESBuild in order to reference javascripts chunks by hash, which by design does not allow for old cached scripts to load, the FlowInterface-(version).js itself, which calls these script chunks, only gets cache busted if its version changed. Because we often rebuild authentik without a proper version change (for patches or nixpkg update) the file name stays the same and thus no new script is loaded into the users browser. This leads to issues where the chunked javascript files do not correspond with the cached FlowInterface-(version).js file and 404's occur.