Astro 5.10 introduces live content collections, responsive images, and stronger CSP

Astro 5.10 introduces live content collections, responsive images, and stronger CSP

Astro 5.10 brings experimental live content collections, allowing developers to fetch data at runtime rather than build time for frequently updated or personalized content. These collections use new live loaders, fetching data on every request so sites stay current without the need for rebuilds. Developers can activate this feature via the liveContentCollections flag and provide source definitions in a dedicated configuration file. Functions such as getLiveCollection() and getLiveEntry() handle live data fetching, filtering, and error management within components.

Additionally, responsive images reach production stability in this release. Astro now automatically generates optimized srcset, sizes, and styling, ensuring images perform well across all screen sizes. Developers can set responsive behaviors globally or per component, and a new priority prop enables eager loading for critical images, targeting improvements to Largest Contentful Paint.

Astro 5.10 expands experimental Content Security Policy support, making it possible to generate CSP headers for both dynamic and static pages. On-demand pages now deliver CSP headers rather than meta tags, unlocking additional directives such as report-uri and frame-ancestors. For advanced deployments, the version introduces support for custom entrypoints in Cloudflare Workers, allowing use cases like Durable Objects, Queues, and Cron Triggers.

by Mauricio B. Holguin

  • ...

Astro is a modern email and calendar application available for Mac, iOS, Android, Slack, and Alexa. It leverages Artificial Intelligence to prioritize important tasks and streamline communication. As an email client, Astro aims to enhance productivity by keeping users focused on essential messages and events. It has a user rating of 4.8, indicating strong user satisfaction.

No comments so far, maybe you want to be first?
Gu