import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
public class DesabiltarCacheFilter implements Filter{
private static final long serialVersionUID = 0L;
public void init(FilterConfig filterConfig) {
}
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
FilterChain chain) throws IOException,
ServletException {
HttpServletResponse res = (HttpServletResponse) response;
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
res.setHeader("Pragma", "no-cache");
res.setHeader("Expires", "0");
chain.doFilter(request, response);
}
public void destroy() {
}
}