Skip to content

Cache-Control (immutable) not applied to minify cache files #1311

Description

@martijnvt1981

Hi,

When enabling browser cache settings in W3 Total Cache (including Cache-Control: public, max-age=..., immutable), the headers are correctly applied to regular static assets (e.g. theme CSS/JS).

However, they are not applied to minified assets served from:

/wp-content/cache/minify/

Observed

Regular assets:

Cache-Control: public, max-age=31536000, immutable

Minify assets:

  • No Cache-Control header
  • Only Expires, ETag, Pragma

Expected

Minified assets should receive the same cache headers, especially since filenames are hashed and safe for long-term caching.

Suggestion

Ensure minify cache files inherit browser cache settings or explicitly set Cache-Control headers.


Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions