php content never cached by browser?
<p>I have run some tests for a website involving how dynamic content (via PHP/nginx in this case) gets cached by various browsers.</p>

<p>I came to the conclusion that, by default, php files are never EVER pulled from cache, even in mobile browsers, even if in the response there is no <code>Cache-Control</code> nor <code>Expires</code> parameter, even if i don't send POST requests and i just follow a link to the page. They are always redownloaded. By contrast, css/js/image files are fetched from cache.</p>

<p>This is good for me, because i want dynamic html to always hit the backend and have a caching mechanism either in the form of Varnish or my own php/filesystem implementation.</p>

<p>Is this usually expected behavior by default? I'm using session cookies by the way.</p>