today_ai_weather/app/controllers
songtianlun fe5c0d5113
Some checks failed
Docker Dev / docker (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Docker Main / docker (push) Has been cancelled
fix: update sitemap retrieval logic
- Change from using `get_object` to `head_object` to check if the
  sitemap file exists before attempting to retrieve it.
- Implement a presigned URL for accessing the sitemap, which is valid
  for 15 minutes.
- Set cache headers to allow for 1 hour of caching.
- Improved logging for better error tracking and debugging.

This change enhances the efficiency of sitemap retrieval by reducing
unnecessary data transfer and provides a more secure way to access
the sitemaps through presigned URLs. It also improves error handling
by logging specific errors related to missing sitemaps.
2025-02-24 17:42:55 +08:00
..
concerns init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
application_controller.rb style: correct string split style 2025-02-22 15:00:37 +08:00
arts_controller.rb refactor: optimize includes for weather arts 2025-02-14 10:01:24 +08:00
cities_controller.rb chore: update keywords for SEO optimization 2025-02-24 14:12:51 +08:00
home_controller.rb feat: update art listings in home controller 2025-02-17 14:38:29 +08:00
rss_controller.rb feat: add RSS feed functionality 2025-02-19 17:38:49 +08:00
sitemaps_controller.rb fix: update sitemap retrieval logic 2025-02-24 17:42:55 +08:00
weather_arts_controller.rb chore: update keywords for SEO optimization 2025-02-24 14:12:51 +08:00