Anyone aware of how the storage cache behaves: If ...
# off-topic
m
Anyone aware of how the storage cache behaves: If I upsert an item, will it automatically invalidate the cache for that item?
g
This should probably be in help thread, but (and it is new year's eve) what is storage cache?
In the fileOptions parameter, you can specify cacheControl which defines the max-age= for the file to be cached
I'm wondering if I upsert a file, will it invalidate the previously cached item and begin serving the new one or not 🤔
I assume yes, it just doesn't say that explicitly in docs
g
I get it. I believe since the browser gets the cache time, you can't affect that with an update... how would you tell the browser it changed?
m
OH it's client-side.............
I see haha
Ok I can invalidate that pretty easy, just: urlToFile?version= on client side
Thanks 😄