As @kornel stated, what you want is not to deactivate the cache, but to deactivate the history buffer. Different browsers have their own subtle ways to disable the history buffer. It was intended as a privacy measure:
To gain full voting privileges, To gain full voting privileges, It tells browsers and caches that the response.
I'm adding the headers in a reusable middleware, otherwise you can set those headers in any way. If your class or action didn't have nocache when it was rendered in your browser and you want to check it's working, remember that after compiling the changes you need to do. I have build a docker image from a docker file using the below command. When i am trying to rebuild it with the same command,.