1

Many times we clear user browser cache when a user open our website or we need user permission to do so. However I spend some time on the internet to find any article or something about clearing the cache through javaScript but I did not find any.

1

1 Answer 1

1

No - JavaScript would not have permission to perform this sort of OS-level operation. It is clearly something that only the user should be able to invoke, not a third-party script without their knowledge.

If you have issues with caching, there are approaches to force fresh loads, e.g. by adding random query strings to HREFs/SRCs.

Sign up to request clarification or add additional context in comments.

2 Comments

Right said. Amit: but we can disable caching for our website.
Rain: how can we disable caching for our website

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.