I'm working on an OSGi-based application that uses org.osgi.service.http.HttpService
which does not support the use of Servlet Filters.
Before I realised that I wouldn't be able to use Servlet Filters I was planning to apply a couple of existing Filters. These Filters set the appropriate HTTP headers to:
- prevent caching of responses
- control rendering in IE8 with the
X-UA-Compatible
header
What are my options here? I don't want to use meta
elements to control caching since that technique is unreliable. Using a meta
element to set the X-UA-Compatible
header is probably acceptable, but I'd still be interested in alternative approaches.