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 ISPConfig Developer ISPConfig Developer

    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
    visible_hostname www.example.com

    # This line indicates the server we will be proxying for
    http_port 80 defaultsite=www.example.com vhost

    What about otherdomain.com, 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?

    thanks!
    Marc
     
  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 ISPConfig Developer ISPConfig Developer

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

    Marc
     

Share This Page