Skip to content

Don't cache aggregaated files for 2 weeks. #185

@simesy

Description

@simesy

When i deploy into a site which has aggregation turned on, the CSS/JS aggregation files may be re-created with new content, but the file name remains the same. This makes it difficult to cache bust these files. For this reason, I think this 2 week caching is problematic and would cause issues for people who don't understand the mechanisms and how to address them.

drupal9/.platform.app.yaml

Lines 142 to 145 in ae188ba

rules:
# Provide a longer TTL (2 weeks) for aggregated CSS and JS files.
'^/sites/default/files/(css|js)':
expires: 2w

More information on this ticket https://www.drupal.org/project/drupal/issues/3370828#comment-15140268

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