We've been trying to troubleshoot why our application built using JSF 1.2 seems to be rendering the HTML source code instead of rendering the page as expected. We are using PrettyFaces to pretty up the URL. Mozilla Firebug shows an occasional Content-Type response header of "text/plain" for the web-pages but when we refresh the same page, it shows up okay with a Content-Type of "text/html".
We have also included an explicit response.setContentType("text/html") in the response filter just to be sure.
- IE 9.0: Works fine most of the time, but has occasional problems
- IE 8.0: Has issues a lot of the time, sometimes it works, sometimes it doesn't
- Safari (Windows) and Chrome 20: Has issues a lot of the time, sometimes it works, sometimes it doesn't
HTML source code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="/js/include.js"></script>
<script type="text/javascript" src="/js/tabs.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
.htaccess
Order allow,deny
Allow from all
IndexIgnore *
Any help to resolve this issue would be appreciated.