In my Java code I have this:
exchange.getOut().setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
exchange.getOut().setHeader("Pragma", "no-cache");
exchange.getOut().setHeader("Expires", "Mon, 01 Jan 1990 00:00:00 GMT");
But is it correct to set the Expire date back in time? Should it not be like now + 1 hour or something?
How can I get the date format correctly (Mon, 01 Jan 1990 00:00:00 GMT)?