<p>I have example of code below. </p>

<pre><code>&lt;script type="text/javascript" src="assets/scripts/somescript.php"&gt;. 
&lt;/script&gt;
</code></pre>

<p>So, will my browser still cache this just by not setting this scripts headers meta tag cache to must-revalidate?</p>

If you send a
```
Content-type: text/javascript; charset="your_charset"
```
the browser will recognize your PHP script as a valid Javascript resource and will handle it like any other Javascript. You can control browser caching behavior by issuing the correct headers in your PHP script using
```
header()
```
.