hi, quick question, i wanna pass in dynamic value to my .js but i want my .js cache-able as well..
initially i use php
<script type="text/javascript" src="file.js.php?myval=<?=$myval?>" />
but this is not cache friendly..
is there any alt way to make it cache-friendly?
does it helps if i put
header("content-type: application/javascript");
inside my file.js.php ?