Servlet Filters and the OSGi HttpService
Posted
by wrumsby
on Stack Overflow
See other posts from Stack Overflow
or by wrumsby
Published on 2009-05-21T02:44:44Z
Indexed on
2010/03/18
22:01 UTC
Read the original article
Hit count: 493
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.
© Stack Overflow or respective owner