Bug 52760 - Mime type for javascript incorrect in documentation
Mime type for javascript incorrect in documentation
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Documentation
unspecified
PC Linux
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-02-24 13:35 UTC by Chris Barran
Modified: 2012-02-26 13:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Barran 2012-02-24 13:35:39 UTC
The mime type for javascript for the expires by type filter is documented as text/javascript.  Tomcat actually serves javascript with the mime-type application/javascript.   


http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html

Says
 <init-param>
    <param-name>ExpiresByType text/javascript</param-name>
    <param-value>access plus 1 month</param-value>
 </init-param>

Should say

 <init-param>
    <param-name>ExpiresByType application/javascript</param-name>
    <param-value>access plus 1 month</param-value>
 </init-param>
Comment 1 Chris Barran 2012-02-24 13:36:59 UTC
Actually the text says access plus 10 minutes or something but you get the idea :-)
Comment 2 Rainer Jung 2012-02-26 13:52:19 UTC
Thanks. We have forgot this when we updated the mime type definitions for TC 7 in web.xml.

Fixed now in trunk and TC 7 (r1293832 and r1293837).