title: Leverage browser caching | modifying .htaccess file | - not working for javascript files
body: <p>I am trying to modify my .htaccess file by specifying an expiration for resources.
  It has worked for images but not for javascript files.  When running GTMetrix it still recommends that the javascript files need expiration.  I have tried "application/javascript" and "application/x-javascript" but to no avail.</p>
  
  <p>Not sure what I am doing wrong.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>     ## EXPIRES CACHING ##
      &lt;IfModule mod_expires.c&gt;
      ExpiresActive On
      ExpiresByType image/jpg "access 1 year"
      ExpiresByType image/jpeg "access 1 year"
      ExpiresByType image/gif "access 1 year"
      ExpiresByType image/png "access 1 year"
      ExpiresByType text/css "access 1 month"
      ExpiresByType application/pdf "access 1 month"
      ExpiresByType application/javascript "access 1 week"
      ExpiresByType application/x-shockwave-flash "access 1 month"
      ExpiresByType image/x-icon "access 1 year"
      ExpiresDefault "access 2 days"
  
      &lt;/IfModule&gt;
      ## EXPIRES CACHING ##
  </code></pre>