I have seen the string "SQUIDINTERNAL" appear in numerous script examples for caching videos using Squid, however none of them explain why they have used the "SQUIDINTERNAL" string appended on the domain, for example: http://video-srv.youtube.com.SQUIDINTERNAL/

1 Answer
1

Many websites use CDN(Content Delivery Network) to scale their website. Some of these are using the same URL on other domains. One of the major opensource players that I can demonstrate with is SourceForge. They have mirrors all over the world and they use a prefix domain to select the mirror like:

So this is a case of Simple URL de-duplication. This scenario can be resolved easily by storing all of the sub-domains under one "key". Kind of like a pseudo for this: every subdomain of dl.sourceforge.net should be stored as: dl.sourceforge.net.some_internal_key. and a ruby example to demonstrate code for that: