I just joined the forum. I'm learning Servlet/JSP. I stand somewhere on the intermediate level.
I googled to understand the difference between request's no-cache and response's no-cache but couldn't find some easy explanation with examples. I know response's no-cache is used whether browser client should cache the page locally or not. What is the practical use of request's no-cache header?
What I understood from rfc is:
Request Cache-Control header tells us what is the browser default cache-ability and server can override that default cache-ability via response's header.
Please let me know whether my understanding is correct.
I am expecting the browser to get the copy of page from cache, that doesn't seem to happen as it prints the new date whenever I refresh/request for the servlet resource. Please let me know what I'm missing here.