-
Notifications
You must be signed in to change notification settings - Fork 16
Fixed tailing slash index check, added caching timeout and fixed scro… #121
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
Conversation
src/Geta.Optimizely.Sitemaps/Areas/GetaOptimizelySitemaps/Pages/Shared/_Layout.cshtml
Outdated
Show resolved
Hide resolved
|
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces several valuable fixes and improvements. It makes the sitemap cache duration configurable, which is a great enhancement for flexibility. It also resolves a potential crash when processing URLs with trailing slashes and fixes a UI scrolling issue. The changes are well-implemented. I've identified one potential issue where a negative value for the cache expiration could cause an unhandled exception and have suggested a fix.
src/Geta.Optimizely.Sitemaps/Controllers/GetaSitemapController.cs
Outdated
Show resolved
Hide resolved
# Conflicts: # src/Geta.Optimizely.Sitemaps/Geta.Optimizely.Sitemaps.Views/Views/Shared/_ShellLayout.cshtml
Ensure the cache expiration time for sitemap data is always non-negative by applying a Math.Max check. This prevents potential errors caused by invalid configuration values.
|



…lling issue
fixes #104 #84 #78 #112