Open W-i-n-7 opened 9 months ago
i think this can be a plugin too
was your problem caused by having url?parameters
?
what?
no
ok, so what's causing the need actually? if you can't say that, do you need "index.html" to not be cached? if yes, is the file changing on disk?
yeah it can change in my use on the shortened links this isnt anything that already couldnt be done because of the server code
im just throwing all my ideas at the wall and seeing what sticks 😀
i have multiple html enabled folders (web folders) and some i dont want to be cached to user's browsers such as my shortened urls folder rejetto came up with server code that will disable caching but i thought there should be a check box that appears if index.html is enabled in the admin panel next to it saying "dont cache" or "no caching" that would do the same as this server code:
exports.middleware = ctx => { if (ctx.path.startsWith('/shrt')) ctx.set('etag', '') ctx.set('Cache-Control', 'no-store, no-cache, must-revalidate') }