title: Servlet Filters and the OSGi HttpService
body: <p>I'm working on an OSGi-based application that uses <code>org.osgi.service.http.HttpService</code> which does not support the use of Servlet Filters.</p>
  
  <p>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:</p>
  
  <ul>
  <li>prevent caching of responses</li>
  <li>control rendering in IE8 with the <code>X-UA-Compatible</code> header</li>
  </ul>
  
  <p>What are my options here? I don't want to use <code>meta</code> elements to control caching since <a href="http://www.mnot.net/cache_docs/#META" rel="nofollow noreferrer">that technique is unreliable</a>. Using a <code>meta</code> element to set the <code>X-UA-Compatible</code> header is probably acceptable, but I'd still be interested in alternative approaches.</p>