How is it possible to set http response headers in JSF? E.g. to set the asked 08.08.2014 at 16:40 SupportIvyTeam ♦♦ |
To set it on the HTML/JSF responses you can configure it in your layouts directly with the expression language: Directly in the layout:
In a Managed Bean, called in the layout:
Response Header Filter To generally manage response headers also for other resources than the HTML/JSF responses (e.g. images etc.) the best way is to create a own servlet filter or use the exisitng one like ResponseHeaderFilter. Onyl expires header for all resources If you only want to control the expires header, there is already a nice built in servlet filter for that. See tomcat documentation for more info With Apache If you use the Apache Integration you can use the Module mod headers or the Module mod expires. answered 08.08.2014 at 16:46 Christian St... ♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 08.08.2014 at 16:40
Seen: 22,801 times
Last updated: 12.05.2017 at 03:35