You should not process resource requests in your filter. What do you think about redesigning this functionality as phase listener, so that you'll be able to use ResourceHandler#isResourceRequest(FacesContext) method then?