-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent caching dev versions of static files #409
Labels
Comments
Per @marcinkrzeminski suggestion the following update to
If that's ok, I would submit PR. |
Is it working OK with browsersync css reloading? Also query string in
production may somehow impact cdn caching.
Wt., 8.01.2019, 12:38: Lubos Kmetko <notifications@github.com> napisał(a):
… Per @marcinkrzeminski <https://github.com/marcinkrzeminski> suggestion
the following update to revisionPath function should solve this:
...
return sprintf(
'%s/%s%s%s',
get_template_directory_uri(),
\Chisel\Settings::DIST_PATH,
trim( $asset, '/' ),
'?' . time()
);
...
If that's ok, I would submit PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAlSfTCBCCzKs5YgitpudSo_oWWzayztks5vBINPgaJpZM4Z1JY->
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because of the expire settings in .htaccess dev version of static files like
main.css
,app.bundle.js
are cached for long time. This can result in cached files being used by browser instead of the updated files which can be quite confusing.@jakub300 @JakubSzajna any ideas how to solve this while keeping expires settings for the build version?
The text was updated successfully, but these errors were encountered: