-
Notifications
You must be signed in to change notification settings - Fork 9
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
Deny direct browser access to /static
URLs / different cache folder
#4
Comments
I think you are right. It would be kind of cool to have a redirect rule for everything in the static cache. I.e. in case you hit /static/photography/index.html you get redirected to /photography. I also thought about putting it in the site folder, but that's less flexible when you want to use a public folder setup. |
This would also fix blocking |
I guess it would be best to have a configurable root option for the static cache. Then you could decide for yourself where it should be living. |
@bastianallgeier should it be new root option when you already have to set it up in |
@iskrisis not sure what you mean |
@bastianallgeier I think i misunderstood i thought you want to make new
Anyway personally i like putting it somewhere into |
I like the idea to put it in |
/static
URLs/static
URLs / different cache folder
✅ |
Should the
/static
folder be blocked from direct access via URL? (…either a.htaccess
file in that folder or instructions in Readme)Reasoning:
…or maybe this folder should be placed under
site/static
or evensite/cache/static
in the first place, to take it out of public reach and semantically make it part of Kirby's "internals"?The text was updated successfully, but these errors were encountered: