Skip to content

[AssetMapper] Recommend Cache-Control instead of Expires HTTP header? #19626

Closed
@ThomasLandauer

Description

@ThomasLandauer

@weaverryan Is there a specific reason why you're recommending to set Expires and not Cache-Control at https://symfony.com/doc/current/frontend/asset_mapper.html#optimizing-performance ?

According to https://stackoverflow.com/q/5799906/1668200 Cache-Control is something like the "successor" of Expires. And Lighthouse is only mentioning Cache-Control: https://developer.chrome.com/docs/lighthouse/performance/uses-long-cache-ttl?utm_source=lighthouse&utm_medium=devtools#how_to_cache_static_resources_using_http_caching

So what do you think about changing the recommendation to Cache-Control?

Metadata

Metadata

Assignees

No one assigned

    Labels

    AssetMapperhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions