Skip to main content

html_cache_headers

Function html_cache_headers 

Source
pub fn html_cache_headers(has_session: bool) -> Vec<(String, String)>
Expand description

Return HTML Cache-Control and Vary headers (WP-CACHE-1).

Authenticated responses use no-store; anonymous HTML uses private, no-cache. Both emit Vary: HX-Request, Cookie so HTMX partials and session states never collide.