htaccess set expiry of js
snippet in htaccess

htaccess set expiry of js

user1350

ExpiresActive On
ExpiresByType text/javascript "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/json "access 1 month"          // Thanks to David Goss