Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"dont cache" checkbox for folders #492

Open
W-i-n-7 opened this issue Feb 19, 2024 · 6 comments
Open

"dont cache" checkbox for folders #492

W-i-n-7 opened this issue Feb 19, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@W-i-n-7
Copy link
Contributor

W-i-n-7 commented Feb 19, 2024

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')
}

@W-i-n-7 W-i-n-7 changed the title no cache checkbox for folders "dont cache" checkbox for folders Feb 19, 2024
@W-i-n-7
Copy link
Contributor Author

W-i-n-7 commented Feb 19, 2024

i think this can be a plugin too

@rejetto rejetto added the enhancement New feature or request label Feb 19, 2024
@rejetto
Copy link
Owner

rejetto commented Feb 19, 2024

was your problem caused by having url?parameters ?

@W-i-n-7
Copy link
Contributor Author

W-i-n-7 commented Feb 19, 2024

what?

@W-i-n-7
Copy link
Contributor Author

W-i-n-7 commented Feb 19, 2024

no

@rejetto
Copy link
Owner

rejetto commented Feb 19, 2024

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?

@W-i-n-7
Copy link
Contributor Author

W-i-n-7 commented Feb 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants