GitHub user pandareen opened a pull request:
https://github.com/apache/tomcat/pull/115
Setting Timezone to GMT for Expires Header as per RFC1123
Tomcat response header 'Expires' is getting formatted into timezone based
string and not just 'GMT' as specified under RFC 1123.
I was facing issues with cache reload for my webapp specifically in Chrome
and found out the response headers were like Cache-Control:private and
Expires:Thu, 01 Jan 1970 05:30:00 IST
I searched for few threads and found browsers only understand GMT.
I've used the same code and format as used for setting Last-Modified as per
the tomcat source code.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pandareen/tomcat trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tomcat/pull/115.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #115
----
commit a7d99a31d09fa2c398e5d640291e817b45f3c23f
Author: sandesh <sandeshyapuram@...>
Date: 2018-06-15T17:53:43Z
Committing changes to set GMT timezone on Expires header
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]