Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-RS Cache Control Header

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading the JAX-RS book by bill burke, wrote below code to see how cache-control header works



But Its not caching the result , every time I make a request, it calls the server. I was expecting it will cache the result and it will reach to server only after 60 seconds, as I have set the maxAge to 60 seconds.

Why every request is going to server ?
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it, I called setNoStore(true) tahs why It didin't cached the result.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic