Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP cache, any use?

on my server i've upgraded my internal nic from 100mbit to gigabit and i was curious what's my maximum speed on that nic with transparent proxy and enabled cache. to my surprise the wan and internal maximum inbound and outbound speeds are identical 8mbit and 1mbit, it seems enabling the cache doesn't really has any positive effect. is it really so?


This thread was automatically locked due to age.
  • I only have one client where caching makes any noticible difference; an auto dealership where all the salespeople access the same on-line training videos.  Other than that, I think there's so much ariety in what people download that caching doesn't make any real difference, and it can be the cause of some problems.

    Having said that, you might be running a test that truly measures the speed of your connection.

    Cheers - Bob
  • it's not about the benefits of having the cache enabled, which should be there even with one user. if the maximum outbound speed equals the inbound speed it means to me that the client never receives data faster then speed of the internet connection, so not even one jpg comes from the cache if i hit ctrl f5 while browsing.
  • How are you measuring the speeds? Most of the graphs may not update fast enough to see super-fast speeds on small files, and the cache won't cache very large files.

    Barry
  • what do you mean by small or large files? for example i visited cnn.com today and the main page is 1,29mb, with pictures about 50kb and banners above 300kb, but there are far bigger banners on sites too. if i hit ctrl f5 it bypasses my browsers cache but should use asg cache and i should see faster speeds than my internet connection speed. i don't know how fast get the charts updated but if there's not even one bigger file that triggers the chart there's something wrong. i also checked the speed with dumeter and within firefox with firebug and didn't see any speed improvement over disabled cache.
  • It probably depends on how the ASG handles GET requests.  When you press F5, the client sends a GET with an "If-Modified-Since" header and the proxy should only download the entire file if the content has changed.  When you press Ctrl-F5, the browser sends a GET request without the IMS, meaning that it wants to get the fresh content. It sounds like when the ASG proxy receives that GET, then it, in turn, does a get, instead of modifying it to an IMS request.  If it were to convert it to an IMS, and as long as the Last-Modified header is not later than what it has in cache, it should serve the page from cache.
  • I'am also wondering about the caching behaviour. when I check our logfiles, we almost have no served requests, that were handled out of the proxy's cache. everything is cached="0" and so directly downloaded - consuming bandwidth. for example, the startscreen of a web search provider. although the providers logo (gif or jpg) is static, it never gets cached or served from cache when reloading or reopening the page. is there any configurable parameter for a better cache use?