• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to prevent particular piece of code or particular http header attribute from browser cache

 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am generating java script tag and javascript code in servlet and diplaying it in each jsp page. i include this in every jsp in my application
i am preparing the following javascript content and diplayin each jsp

<script type="text/javascript"> BOOM.addVar (clientId = SOME universal unique ID ) </script>

the clientid will be uniqueid it gets generated every time.

here my question is, is there any possibility the clientId will be store in browser cache or third party cache server. if yes how to prevent clientId from cache.

i don't want to prevent the whole jsp file from cache. i just want to prevent only that particular field. so that i can use advantages cache and also prevent particuler header field to be cached.


also can we prevent particular http header attribute from cache.


Thanks,
Kaleeswaran K


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, nope.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to achieve by that?
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dittmer, Its great pleasure to receive reply from you after 5 year..I have learned many thing's here in javaranch 5 year before, you were really helped me to understand what is servlet and jsp when i was beginner in java.

Thanks you so much...

back to the business..

We are generating boomerang javascript for monitoring purpose and we are generate unique clientid for each user transaction and that clientid will be send to beacon servlet.

one of our client is using akamai netscaler caching tool which cache the client id which we generate each user transaction.

That is the issue. so now my question is every time generate new unique clientid how that would be store in cache. is it possible to happen like that. if so how could we avoid prevent to store in cache.

Thanks,
Kaleeswaran K
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!