I'm adding the headers in a reusable middleware, otherwise you can set those headers in any way. It was intended as a privacy measure: Ok, even if you aren't using express, what essentially needed is to set the nocache headers.
Genius Costume Ideas for Halloween
As @kornel stated, what you want is not to deactivate the cache, but to deactivate the history buffer.
When i am trying to rebuild it with the same command,.
I have build a docker image from a docker file using the below command. It tells browsers and caches that the response. To gain full voting privileges, Different browsers have their own subtle ways to disable the history buffer.