-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Create a sitemap #489
Comments
This could possibly be a good issue to build, but I'm in doubt on which solution would be better. I thought about three possible solutions. Just querying the database and rendering a XMLThe simplest solution I could think of, but I guess it could a viable vector for DOS attack, since it would query the entire database every time some hits the server. Querying and rendering with cacheCaching the results on something like an Generating a
|
The last option of generating a clojars-web/src/clojars/tools/generate_feeds.clj Lines 72 to 88 in 6c7564a
There's no need for this data to be particularly fresh, every 24 hours seems plenty to me. |
There are any pages that shouldn't go on the sitemap? Or there is any nontrivial detail about this, for example, on #482 you argued about using |
I think user/:key makes more sense here and should be easier to generate. |
Great, I guess I'll just build what I have in mind first and get back to you later. |
@danielcompton @tobias I've put up a PR to address this issue. Let me know if you have any feedback on it whenever you are able to take a look. |
Thanks @opoku! I'll take a look once things settle down a bit. |
Thanks for the PR @opoku! I merged it, but ran in a test failure locally, and noticed a couple of issues:
So that's a bigger issue. We may need to generate/store these in a different way. I'll think about it, and would be happy to chat about it tomorrow if you have a few minutes. |
Thanks for the feedback. I'll put up some thing to address the test failure. Happy to chat some more tomorrow. |
Thanks for the rework @opoku! I merged it and cleaned it up a bit. I then added a location block to our nginx config to serve these. I tested the sitemap with google, and it complained that our |
Proxying the sitemap instead of redirecting to it fixed the issue. This is now working. Thanks @opoku! |
@tobias woohoo. Thanks for cleaning this up. |
It would be good to create a sitemap for Clojars to enumerate the many many pages on the site.
More details: https://support.google.com/webmasters/answer/156184?hl=en
The text was updated successfully, but these errors were encountered: