etadelta222 commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2104855472

   
   
   
   > If it is the client caching pointers to chunks that no longer exist on the 
server, it does seem like we might have a few options
   > 
   > * tell the browser to refresh itself on error (the above suggestion) so it 
becomes aware and loads chunks... but that does seem glitch-prone in its own 
way, and does feel like a bandaid.
   > * Keep older chunks around in a directory, with a certain TTL on them 
that's longer than the client cache. This seems like the safest/smoothest 
option I can think of.
   > * Have the browser load from cache or not based on data in the JWT. When 
the site is redeployed, the JWT could effectively invalidate the cache. 
Probably not straightforward with a SPA... it'd have to do a check on route 
change or something.
   > * Set up a health check endpoint (I think we might already have one, 
actually) that responds with a build SHA/UUID. We could check that as a polling 
operation and/or on SPA route change, and force a reload when it changes... but 
this also feels like a weird bandaid.
   > 
   > This feels like there should be a best practice, and we're reinventing a 
wheel here. I'll try to do some digging.
   
   Hi @rusackas , @mistercrunch will the solution be part of a future release?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to