Visto che salvi i file sul filesystem, usa l'.htaccess per abilitare il caching dei file JS:

https://help.dreamhost.com/hc/en-us/...htaccess-file-