Cache for multiple subdomain



  • Hi,

    We have a site with a lot of subdomains. For now I will use the url test.net as tld and a.test.net. b.test.net as subdomains. (as example)

    We have a cluster for test.net
    Now we will enable caching on this cluster.

    Juniper% show cache test. net stats detail
    ```gives us:
    

    Hit Count Statistics:
       Size      # Hits   Cache Time   Order                    URL
    ---------- ---------- ---------- ----------  ----------------------------------
       6.87KB      9.24M         28          1  /sripts/misc.js
      15.49KB      9.08M         15          2  /style22.css
       5.70KB      9.07M         28          3  /js/arnostat.js
          45B      9.03M        104          4  /img/v_balk.gif
         119B      9.03M        122          5  /images/logo.gif
         322B      9.01M        117          6  /images/ico_pda.gif

    
    so… not the whole url is used in the cache?
    
    And now the problem:
    if a.test.net/images/logo.gif is cached, it also used for b.test.net/images/logo.gif
    and that's a big issue....
    
    sex.test.net/image/first.jpg is cached, an will also shown on kids.test.net/images/first.gif
    
    Is there any solution for this problem?
    
    Yeah, we can redesign our sites... and make the path of very site unique
    sex.text.net/sex_image/first.jpg but that's not an option.

 

33
Online

38.4k
Users

12.7k
Topics

44.5k
Posts