![]() |
|
no-cache for temporary files - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: no-cache for temporary files (/thread-2637.html) |
no-cache for temporary files - iwuser - 02-11-2022 I'm creating lots of tmp files with TIWAppCache.AddFileToCache(self,... calls or similar and then serve them to client on request, but the problem is that I reuse the same names (matching original file names) and the browser caching messes it up for me. I can see IW is sending these headers ("cache-control: private"), see attached. And no matter what I tried, this does not change. I tried extra headers in the form, as well as AllowCaching & CacheControlEnabled in the server controller, but neither makes any difference. RE: no-cache for temporary files - kudzu - 02-11-2022 We cant see the image. Please save it as a file and then attach it. RE: no-cache for temporary files - iwuser - 02-11-2022 (02-11-2022, 08:15 PM)kudzu Wrote: We cant see the image. Please save it as a file and then attach it. I've edited the original post. Interesting how it allows pasting imaged and actually displays them in edit mode... RE: no-cache for temporary files - Alexandre Machado - 02-14-2022 Some browsers don't re-validate the cached file and will just use whatever they have in their cache system. I've seen this sooooo many times. The rule of thumb is: if the file has changed, change the file name. That's the only way to make sure it will refresh. RE: no-cache for temporary files - iwuser - 02-14-2022 (02-14-2022, 05:42 AM)Alexandre Machado Wrote: Some browsers don't re-validate the cached file and will just use whatever they have in their cache system. I've seen this sooooo many times. Fair enough, thanks. I actually do when I can. And/or append random ?ver={GUID} parameters. But sometimes I cannot and would like to change the cache-control header when these are sent. Can it be set? |