-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement better cache busting for new releases #11
Comments
I misspoke when I said |
I'm still confused why urlArgs was committed upstream commented out - want to know if that was intentional before accepting this as a fix - elastic#1291 |
If I only had a 💵 for every time I've been bitten by caching issues... |
@ghoranyi - have you applied the You should be seeing url's like this: |
@mrdavidlaing No I didn't, but I will do so. I just used the version available at elasticsearch.org. Thank you for your quick response. |
Please - let us know how you get on. If our patch works for you; would you consider creating an upstream PR to get it applied to elasticsearch/kibana ? |
@mrdavidlaing Yes it worked, indeed. I will create the upstream PR as soon as I can (I have some other pending changes, which I am currently discussing with my employer - licensing, etc...) |
Great news - glad our fix helped you. |
@mrdavidlaing, we should discuss putting kibana's assets in a versioned directory or using a cache-busting query param to avoid https://www.flowdock.com/app/cityindexlabs/cityindex-logsearch-io-support/inbox/341753
dpb587 17:48
@mrdavidlaing, we should discuss putting kibana's assets in a versioned directory or using a cache-busting query param to avoid https://www.flowdock.com/app/cityindexlabs/cityindex-logsearch-io-support/inbox/341753
dpb587 17:48
perhaps angular has a built-in way to do that which we can embed into our config.js? /cc @ryanholder
dpb587 17:49
aka, i don't know where to create such an issue
ryanholder 18:08
@dpb587, if I remember correctly Kibana uses RequireJS for assets and the issue might lie there. This is the first thing on Google regarding cache busting for RequireJS - http://requirejs.org/docs/api.html#config-urlArgs
dpb587 18:12
For our kibana deploy, we should consider renaming /app/ to /app-$BUILD_NUMBER, updating index.html, and set long-term caching for that directory. The require.js urlArgs is a hacky approach and avoids any sort of useful caching.
The text was updated successfully, but these errors were encountered: