Sylius: Stale asset cache in the browser between Sylius upgrades

Created on 10 Jul 2018  Â·  10Comments  Â·  Source: Sylius/Sylius

Describe the proposed solution
If you update Sylius version, new assets are built, but client browser cache does not refresh that easily and still uses previous assets (css files etc.). Do you have any easy solution for this?

Describe alternatives you've considered
Override template, generate manifest file for assets, include assets by myself.

Additional context
None.

Do not stale Potential Bug

All 10 comments

As @teohhanhui mentioned on Sylius' Slack:

we need to use one of version, version_strategy or json_manifest_path
https://symfony.com/doc/current/reference/configuration/framework.html#version

This is one of the things that having only 1 gulpfile would definitely help with...

Please don't block me from using the json_manifest_path. I have my own assets to manage.

If you ask me, all Sylius assets should be under a sylius asset package.

I'd like to help, but my versioning / Gulp / frontend knowledge is not enough here :)

I think we can add sylius asset package without any BC breaks in v1.3.0, wdyt?

Maybe we could drop yarn too, npm has lock file support too now.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

Please do not stale :/ you should move to webpack and build proper assets with the content hash.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefandoorn picture stefandoorn  Â·  3Comments

eb22fbb4 picture eb22fbb4  Â·  3Comments

tchapi picture tchapi  Â·  3Comments

crbelaus picture crbelaus  Â·  3Comments

bnd170 picture bnd170  Â·  3Comments