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

Add sitemap #94

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Add sitemap #94

merged 1 commit into from
Nov 13, 2024

Conversation

Carlgo11
Copy link
Member

Google is having issues crawling the site now that the category data is loaded dynamically. Adding a sitemap with all the available categories should help it crawl the site easier.

Doing it with Preact seemed very difficult as it's not possible to run any JS code from the user so instead I chose the Cloudflare Functions option.
I opted for a cache max age of 1 month as to minimize the CPU time.

@Carlgo11 Carlgo11 added the Code enhancement Enchancements to the website code label Nov 13, 2024
@hkamran80 hkamran80 merged commit 68d6555 into 2factorauth:master Nov 13, 2024
1 check passed
@Carlgo11 Carlgo11 deleted the add-sitemap.xml branch November 13, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code enhancement Enchancements to the website code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants