Skip to content
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

[Question] Internet Explorer - Cache Problem #4486

Closed
ahmetkakici opened this issue Mar 28, 2016 · 3 comments
Closed

[Question] Internet Explorer - Cache Problem #4486

ahmetkakici opened this issue Mar 28, 2016 · 3 comments

Comments

@ahmetkakici
Copy link

Hi guys,
I'm using Grafana 2.6.0 on Ubuntu Server and using InfluxDB (v0.9) as datasource.

When i open dashboard from Opera (v36), Chrome (v49) it's refreshing my dashboards with auto-refresh option but whenever i open it from Internet Explorer (v11) it sends request to InfuxDB and IE uses it's cache to response these requests. Below is the output of Internet Explorer's network tab;

Name : http://192.168.0.102:8086/query? ....(here goes my query)
Protocol : HTTP
Method:GET
Result :200
Content type:application/json
Received : (from cache)
Time Initiator: 0s

As it says, it always response these request from cache unless i disable cache option of Internet Explorer.

So i'm curious about if there is an option in query builder which adds a timestamp (or any random value) to queries to not hit the cache.

@torkelo
Copy link
Member

torkelo commented Mar 28, 2016

no there is no such option currently.

@ahmetkakici
Copy link
Author

Thanks for reply @torkelo but auto-refresh problem is still here.
Is there any workaround for this issue?

@coussej
Copy link

coussej commented May 11, 2016

@torkelo I just encountered the same issue. I noticed that when I opend the developer tools (F12), it suddenly worked. This is because by default, the 'Always refresh from server' option is enabled. When I disable it, the HTTP request looks like the one from @ahmetkakici. When enabled, the header Cache-Control: no-cache is added.

Can grafana add this header by default, for the refresh requests? They should never be loaded from cache, so I see no point in not adding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants