decomp.me icon indicating copy to clipboard operation
decomp.me copied to clipboard

Better cache busting

Open ethteck opened this issue 1 year ago • 6 comments

When we update certain things like the recent #1103 , it breaks the site because the browser cache doesn't play well with the new state of things

ethteck avatar Mar 05 '24 14:03 ethteck

vercel deploys would fix this plobably

bates64 avatar Mar 05 '24 15:03 bates64

I'm sure there's an elegant solution that wouldn't require using vercel. I would rather we go for a simple fix for this issue

ethteck avatar Mar 05 '24 15:03 ethteck

yeah, i just maintain that vercel would give us lots of other nice benefits too

bates64 avatar Mar 05 '24 15:03 bates64

as vercel want me to think obviously so they can make their investors happy but its free so

bates64 avatar Mar 05 '24 15:03 bates64

I think I've found one of the issues... /api/compiler is returning a 304. Once I manually loaded this endpoint, I stopped getting errors. adding the backend tag too

ethteck avatar Mar 05 '24 15:03 ethteck

I think last_modified_funcs should add in when the backend launched: https://github.com/decompme/decomp.me/blob/main/backend/coreapp/views/compiler.py#L40

ethteck avatar Mar 05 '24 16:03 ethteck