0

Don't keep Javascript in cache

asked 2012-09-27 11:09:21 +0800

Neus gravatar image Neus
1415 14

Hi,
Is there a way for not keeping javascript code in cache?? It gives us some problems.
For example: We had a javascript function that opens a window. Nowadays we need to pass some parameters in the url, so we add these parameters in the javascirpt function.
The problem is that if user doesn't clear the browser's cache new javascript is not interpreted and it makes application to fails.

How can I solve it???


Thank you!

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-09-27 13:14:53 +0800

dis gravatar image dis flag of Switzerland
140 4

Hi

I see three options:

1. Use HTTP Cache settings
2. Tell your user to refresh the page with Ctrl-F5
3. Use a new name for your JavaScript file

Regards
Dieter

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-09-27 11:09:21 +0800

Seen: 64 times

Last updated: Sep 27 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More