Java Servlets
| Header | Usage |
|---|---|
| Cache-Control | Either no-cache or no-store (no proxy store) and max-age=fresh for these many seconds |
| Connection | keep-alive to keep socket open or close. Servers handle this automagically. |
| Retry-After | Date or seconds to wait for server to start working. |
| Expires | Date when the documents will(may) change. |
| Location | The URL to which the document moved to. |
| WWW-Authenticate | Authorization scheme and realm. |
| Content-Encoding | Can be gzip or compress. |
public void HttpServletResponse.setHeader(String name, String value);
public void HttpServletResponse.setDateHeader(String name, long date); public void HttpServletResponse.setIntHeader(String name, int value);
37 of 89