Start your All-Access Pass to unlock this challenge
Now that we understand why some users aren't seeing the new CSS file, what could we change on our app to prevent this in the future?
By modifying config/packages/webpack_encore.yaml and adding:
config/packages/webpack_encore.yaml
'data-turbo-track': reload
To both link_attributes and script_attributes.
link_attributes
script_attributes
By making sure you enable versioning in Webpack Encore:
.enableVersioning(Encore.isProduction())
And also by modifying config/packages/webpack_encore.yaml and adding:
'data-turbo-track': refresh
To link_attributes.
And by modifying config/packages/webpack_encore.yaml and adding:
'data-turbo-webpack': track-versioning