[Перевод] HotSpot AOT-кэш: стартуем быстрее, греемся меньше

В новом переводе от команды Spring АйО рассмотрим, как можно ускорить Java-приложения без переписываний: в свежих JDK появились Ahead-of-Time оптимизации кэша, которые выносят «дорогие» этапы загрузки/линковки классов (и даже частично профилирование методов) из рантайма в заранее подготовленный артефакт. Рассмотрим как устроен AOT-кэш в JDK 24–26, какие есть workflow (3 шага vs 2 шага/в один прогон), где прячутся подводные камни вроде удвоения требований по памяти при - XX:AOTCacheOutput , и какие практики обучения помогут реально сократить время старта и быстрее выйти на пик производительности.

https://habr.com/ru/companies/spring_aio/articles/995398/

#java #kotlin #jvm #aot #cache #cachecontrol #spring #spring_boot #spring_framework #springboot

HotSpot AOT-кэш: стартуем быстрее, греемся меньше

В новом переводе от команды Spring АйО рассмотрим, как можно ускорить Java-приложения без переписываний: в свежих JDK появились Ahead-of-Time оптимизации кэша, которые выносят «дорогие» этапы...

Хабр
Oh, joy! An exhilarating deep dive into HTTP caching 🤯👾 because who doesn't love reading the thrilling saga of RFC 9111? Spoiler alert: It's all about bossing around the #CacheControl header, like the ultimate micromanager of web protocols. 📜💤
https://danburzo.ro/http-caching-refresher/ #HTTPCaching #RFC9111 #WebProtocols #TechDive #HackerNews #ngated
HTTP caching, a refresher · Dan Cătălin Burzo

Let’s relearn web caching together.

Tower Defense: Cache Control

Tower Defense: Cache Control

A config object sets granular cache durations: long TTLs for static assets (images, CSS, JS, fonts), shorter ones for dynamic content (API), and rules for HTML, homepage, search, sitemaps, feeds. Custom cache keys are generated, including normalized URL, device type, and cache version, to maximize hits and enable invalidation. #EdgeCaching #CacheControl #CDN #WebPerformance #Tech

Although frequently misunderstood, the HTTP Cache-Control header is crucial because it specifies caching mechanisms within requests and responses.  In its typical format, it reveals details as to how resources are stored, the location of the resource and the maximum age before expiring…

In our latest blog post, Kieran Larking highlights that the No-cache directive does not prevent caching and looks at typical caching behaviour directives and how to correctly use these directives to balance performance and security: https://www.pentestpartners.com/security-blog/take-control-of-cache-control-and-local-caching/

#Caching #CacheControl #WebPerformance #WebSecurity #HTTPHeaders #Cybersecurity #DeveloperGuide #HTTP

Take control of Cache-Control and local caching | Pen Test Partners

TL;DR Caching speeds up website content delivery What caching directives are and how to use them The No-cache directive does not prevent caching The No-store directive prevents caching Introduction The HTTP Cache-Control header is sometimes misunderstood. It's important because it is used to specify caching mechanisms within requests and responses. In its typical format, it

After nearly 6.5 years since the bug/feature request was filed, it looks like Chromium are going to implement `cache-control: immutable`!

The bug has been assigned to someone at Microsoft so maybe they want it in Edge.

Good news, IMO!

https://issues.chromium.org/issues/41253661

#WebDev #CacheControl #Immutable #WebPerf #WebPerformance

Chromium

Разбираемся в статусах кеша CDN

Привет, Хабр! Cегодня мы разберемся с одним из ключевых аспектов работы CDN – статусами кеша. Если вы когда-нибудь заглядывали в заголовки ответа сервера или анализировали логи CDN, то наверняка встречали загадочные аббревиатуры HIT, MISS или EXPIRED. Давайте разберемся, что они означают и почему так важны для понимания работы CDN.

https://habr.com/ru/companies/cdnnow/articles/849674/

#cdn #статусы_кэша #miss #hit #статусы_кеша #cache #cachecontrol

Разбираемся в статусах кеша CDN

Привет, Хабр! Cегодня мы разберемся с одним из ключевых аспектов работы CDN – статусами кеша (cache). Если вы когда-нибудь заглядывали в заголовки ответа сервера или анализировали логи CDN, то...

Хабр
Does s-maxage in Cache-Control have any effect on proxies if used together with private and max-age=0? ​

Like
Cache-Control: max-age=0, must-revalidate, private, s-maxage=10

The intent is that the browser can continuously hit the reverse proxy for updates, but should have like a 10-second cooldown before the proxy hits the backend.

#HTTP #Web #WebDev #WebDevelopment #Cache #CacheControl #Caching #AskFedi

#Development #Explorations
What Is the maximum max-age? · Can you cache a file in the browser ‘forever’? https://ilo.im/15ctyl

_____
#WebDev #WebPerf #Browser #Frontend #CacheControl #Cache #Files

What Is the Maximum max-age? – CSS Wizardry

We usually set max-age directives to a year; can we go longer?