I have a anchor tag. For the first time(color deep blue link) when I click it, it redirects me to my dynamic graph which forms a curve, you can see the curve being rendered.
But when for the second time when I click the anchor tag(pale pink color), it redirects me to the same dynamic graph but the graph is already loaded/rendered, you don’t see the curve being rendered.
Can I solve this problem, as I always want the link and graph react as if its always rendered for the first time
How to solve this by either using JavaScript or PHP.
Thanks in advance.
2
Answers
You could trick the browser by changing the URL everytime by adding a random parameter. You may name it totally different if you like.
So the URL looks like different on every call and won’t get the cache hit, because it is not the same.