Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Clarification about Varnish

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


mkadusale at novenix

Apr 26, 2012, 4:19 AM

Post #1 of 2 (212 views)
Permalink
Clarification about Varnish

Good Day!

I would like to clarify on something about varnish's behavior.

I have a page and its including a javascript file.
Now the page content does not change or it's a static page while the javascript file's content is always changing.
Would varnish still cache the page and serve the page using the cache?

Thanks,
Myles


perbu at varnish-software

Apr 26, 2012, 4:38 AM

Post #2 of 2 (197 views)
Permalink
Re: Clarification about Varnish [In reply to]

Hi Myles,

On Thu, Apr 26, 2012 at 1:19 PM, Myles Kadusale <mkadusale [at] novenix>wrote:

> Good Day!****
>
> ** **
>
> I would like to clarify on something about varnish’s behavior.****
>
> ** **
>
> I have a page and its including a javascript file.****
>
> Now the page content does not change or it’s a static page while the
> javascript file’s content is always changing.****
>
> Would varnish still cache the page and serve the page using the cache?
>

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.


--
Per Buer
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.