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

reppy's cache doesn't handle redirects gracefully #80

Open
b4hand opened this issue Nov 17, 2017 · 0 comments
Open

reppy's cache doesn't handle redirects gracefully #80

b4hand opened this issue Nov 17, 2017 · 0 comments
Assignees

Comments

@b4hand
Copy link
Contributor

b4hand commented Nov 17, 2017

If you check cache.allowed() for a URL who's robots.txt gets redirected via a 301 to a different FQDN, the cache entry will be stored for the pre-redirected URL. This makes sense unless you later check cache.allowed() for a URL in the redirected domain which causes an additional robots.txt fetch for the redirected domain. Ideally, it would be nice if the cache entry was updated for both the pre-redirected URL and the post-redirected URL to avoid additional fetches later.

@b4hand b4hand self-assigned this Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant