Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.3
-
None
-
None
-
Tomcat 9
Description
We conduct an issue that our resources have incorrect header: Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT.
After investigating the issue, I found that we deploy using Tomcat with a version tag and a path to resources contains special characters (#).
And the method `getResourceLastModified` can not read the resources, because the URL (file path) contains URL Encoded characters (for OS this is not a valid path) like this: /some-path/tomcat/webapps/v3%23%233.2.1/resources/layout/js/layout.js.
I created a PR with a solution which solved the issue for us https://github.com/apache/myfaces/pull/90