class FixedCacheControlOutInterceptor extends AbstractPhaseInterceptor<Message> {

    @SuppressWarnings("unchecked")
	public final void handleMessage(Message message) {
        OutputStream os = message.getContent(OutputStream.class);
        if (os == null) {
            return;
        }
        MultivaluedMap<String, Object> headers = (MetadataMap<String, Object>) message.get(Message.PROTOCOL_HEADERS);
        if (headers == null) {
            headers = new MetadataMap<String, Object>();
        }   
        headers.add("Cache-Control", new String("no-cache"));
        headers.add("Expires", new String("-1"));
        message.put(Message.PROTOCOL_HEADERS, headers);
    }

    public  FixedCacheControlOutInterceptor();

}