Answer the question
In order to leave comments, you need to log in
Chart js caches the site - what to do?
Good afternoon!
I am developing a project in php.
Needed graphical visualization.
Added a Chart JS chart to the project.
The data in the graph is selected from the MySQL database.
So, after adding this graph, the site began to cache wildly.
It got to the point that you completely delete the chart code from the project - save the project - completely close the browser.
You open - you refresh the page, and on it, as there was a schedule, it remained.
The only thing that helps is a complete clearing of the history while working with the site.
If someone faced a similar problem - what did you do ???
Or what can be done to prevent this from happening?
Where to dig?
Answer the question
In order to leave comments, you need to log in
For debugging in chrome ctrl shift r clearing the cache with extreme cruelty.
For production, set up a server. Htacess no cache on certain paths.
The problem is clearly something else, Chart JS has nothing to do with it. Look for a problem on the server.
Try to include chart.js with simulated GET request:
...
<script type="text/javascript" src="/js/chart.js?val=0"></script>
...
<?php
...
If someone faced a similar problem - what did you do ???
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question