Question on : How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch

Discussion in 'HOWTO-Related Questions' started by marchost, Jan 15, 2009.

  1. marchost

    marchost New Member HowtoForge Supporter

    I have two questions about the howto...

    My server is currently hosting around 10 domains, one of them is quite busy.

    I would like to cache only one of the domain, will those line in squid.conf be enough ? :

    # Basic parameters

    # This line indicates the server we will be proxying for
    http_port 80 vhost

    What about, will it work as if there was no proxy?

    My second question is whats happening with pages that dont have the standard header :

    "Cache-Control: must-revalidate, max-age=0, s-maxage=600"

    What if I dont give any directive to squid about caching, will the page be cached or not?

    If yes, is there any way only to cache pages have the to-cache header?

  2. falko

    falko Super Moderator ISPConfig Developer

    I'm not quite sure if this is enough, you'd have to test it. If it doesn't work, you might have to create some acls, or you give your other web sites headers that tell Squid not to cache them.

    I don't think it will be cached then, but that also depends on the other headers (e.g. if there's an "Expires" header, etc.).
  3. marchost

    marchost New Member HowtoForge Supporter

    Thanks Falko, ill try that at night when its quiet and let you know the results...


Share This Page