Oleh Astappiev created MYFACES-4326:
---------------------------------------
Summary: Incorrect Last-Modified header for resources
Key: MYFACES-4326
URL: https://issues.apache.org/jira/browse/MYFACES-4326
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 2.3.3
Environment: Tomcat 9
Reporter: Oleh Astappiev
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|https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Naming] 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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)