<div class="gmail_extra">Hi Myles,<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 1:19 PM, Myles Kadusale <span dir="ltr"><<a href="mailto:mkadusale@novenix.net" target="_blank">mkadusale@novenix.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Good Day!<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">I would like to clarify on something about varnish’s behavior.<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">I have a page and its including a javascript file.<u></u><u></u></p>

<p class="MsoNormal">Now the page content does not change or it’s a static
page while the javascript file’s content is always changing.<u></u><u></u></p>

<p class="MsoNormal">Would varnish still cache the page and serve the page using the
cache?</p></div></div></blockquote><div><br></div><div>Varnish would cache both the web page and the Javascript page according to headers or configuration. Set a long TTL for the HTML page and a short TTL for the Javascript file and you'll be fine.</div>

<div><br></div></div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>

<i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>
</div>