Skip to content

Cache busting #951

@rbibby

Description

@rbibby

What is the feature?

Add GET params to the stylesheets / Javascript to help with cache busting

What benefits will this change bring?

Changes to stylesheets / JS will show without needing a hard refresh

Additional context

I'm not sure how it would work with this project but in Laravel there's a mix manifest file which gives the hash of each asset. This is then appended to the file name as GET param so when the file contents change the hash changes. A function is used to load assets in the link tags using the mix manifest file to get the hash

https://laravel.com/docs/9.x/mix#versioning-and-cache-busting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions