- 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. |
||
---|---|---|
.. | ||
concerns | ||
application_controller.rb | ||
arts_controller.rb | ||
cities_controller.rb | ||
home_controller.rb | ||
rss_controller.rb | ||
sitemaps_controller.rb | ||
weather_arts_controller.rb |