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

Incorrect browser caching of query results #4088

Open
ari-e opened this issue Aug 20, 2019 · 0 comments
Open

Incorrect browser caching of query results #4088

ari-e opened this issue Aug 20, 2019 · 0 comments

Comments

@ari-e
Copy link
Contributor

ari-e commented Aug 20, 2019

Issue Summary

During local development with Redash, the browser incorrectly caches results from previous Redash deployments.

After building, tearing down, and re-building my dev deployment a few times I noticed that new queries were returning the result of previous queries from several docker-compose up's ago. For example, I would have some group by query and then after several tear-downs and re-builds of the service I would run a simple count() and the result would be the same as that group by from an hour ago. What’s even weirder is running this count() many times in a row would lead to different results. Sometimes it would be the correct answer, sometimes it would return that aggregate result, and sometimes it would return a result from another query I had run previously.

I finally realized that disabling caching on my browser stopped this issue. The changes I made are simple changes to the internals of a data source and should have no effect on anything related to this type of behavior.

See https://discuss.redash.io/t/maddening-browser-cache-behavior-in-dev-environment/4342 for more.

cache_issue

Steps to Reproduce

  1. Follow https://redash.io/help/open-source/dev-guide/docker to set up a local Redash dev deployment
  2. Bring up the services, connect a data source, run some queries
  3. Tear down the services
  4. Repeat 2 and 3 a few times
  5. Open localhost:5000 and enter a query in the query editor. Press "Execute" many times in a row to see different results.

Technical details:

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

No branches or pull requests

1 participant