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

Change how invalid pages are handled #9

Open
nocduro opened this issue Apr 27, 2018 · 0 comments
Open

Change how invalid pages are handled #9

nocduro opened this issue Apr 27, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@nocduro
Copy link
Owner

nocduro commented Apr 27, 2018

Right now invalid pages like https://rustref.com/invalid will hit the static file handler route, which has to check the filesystem for that file before returning 404. The origin server is not running on an ssd, so this is may be a little slower than it needs to be.

Not sure how to change it though. Maybe just have a route for each of favicon.ico and robots.txt? Or maybe Caddy should handle those files?

@nocduro nocduro added the enhancement New feature or request label Apr 27, 2018
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

1 participant