Forum Moderators: open
It's easy enough to setup my script to do so, but it's getting the correct mime type sent by the server as with my current setup the server sends a text/html header.
Generally, for an html file I would add
AddType text/x-server-parsed-html .html
to the .htaccess file, but obviously if I use the above command to get js parsed, then the server associates it with the mime type of text/html instead of application/x-javascript