Rev | Line | |
---|
[1240] | 1 | package gov.va.med.edp.web.view;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.web.servlet.support.WebContentGenerator;
|
---|
| 4 |
|
---|
| 5 | import javax.servlet.http.HttpServletResponse;
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * TODO: document HttpCacheControl
|
---|
| 9 | */
|
---|
| 10 | public class HttpCacheControl {
|
---|
| 11 | static final java.lang.String HEADER_CACHE_CONTROL = "Cache-Control";
|
---|
| 12 | static final java.lang.String HEADER_EXPIRES = "Expires";
|
---|
| 13 |
|
---|
| 14 | public static void addNoCacheHeaders(HttpServletResponse response) {
|
---|
| 15 | response.setHeader(HEADER_CACHE_CONTROL, "no-store, must-revalidate");
|
---|
| 16 | response.setHeader(HEADER_EXPIRES, "Thu, 01 Jan 1970 01:00:00 GMT");
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.