Bug 52760

Summary: Mime type for javascript incorrect in documentation
Product: Tomcat 7 Reporter: Chris Barran <c.d.barran>
Component: DocumentationAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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.   


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

Should say

    <param-name>ExpiresByType application/javascript</param-name>
    <param-value>access plus 1 month</param-value>
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).