Download Scheme for segregating cacheable and non
Transcript
US 6,587,928 B1 4 3 interface (cgi) or other script) or a Web page that is fre Herein, the term cache is meant to describe and/or refer to quently updated at its origin server should not be cached a device that resides logically betWeen a client and server, or because users Will Want to receive the most current version other content source, and that stores information ?oWing there betWeen in some manner. Caches may be physically co-located With clients, routers, sWitches and/or servers and/or may be stand-alone devices. Data streams from the of such content. Thus in general, dynamic content should not be cached in order to avoid serving up stale information. Nevertheless, requests for such content may still be directed to the cache 16, hoWever, because such requests are often source are received at the cache and from there are routed to the requesting clients. En route, each stream can be buffered (stored) and such buffered information can be used to satisfy made on Well-knoWn ports that are redirected to a cache as a matter of policy by an ISP. This Will result in the user a number of requests for the content Without need for reference back to the original content source. request being serviced sloWer than if the request Were passed directly to an origin server. SUMMARY OF THE INVENTION A computer-implemented process is organiZed to recog niZe a request as being for a cacheable object or a non 15 With one or more minor variations. Therefore, in the fol cacheable object according to information included in a Uniform Resource Locator (URL) associated With the object. For example, the URL may include a port designa loWing description the illustrated embodiments should be regarded as exemplary only and should not be deemed to be limiting in scope. Further, it should be kept in mind that tion for requests for cacheable objects (e.g., images and the like). Thus, a request may be recogniZed as being for a cacheable or non-cacheable object according to the port on Which the request is made. In some cases, requests for non-cacheable objects may be made on port 80. One bene?t of this scheme is that by providing a mechanism to differ entiate betWeen cacheable and non-cacheable content, some portions of the detailed description that folloWs are presented in terms of algorithms and symbolic representa tions (e.g., through the use of How diagrams, etc.) of 25 caches need not be overloaded With unnecessary traf?c requesting non-cacheable content. In another embodiment, a router may be con?gured to recogniZe a request as being for a cacheable object or a physical quantities. Usually, though not necessarily, these request is received. In still further embodiments, Uniform Resource Locators (URLs) may be con?gured to identify Whether or not an quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared and otherWise manipulated. It has proven convenient at object associated thereWith is to be cached or not. For 35 times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, ing objects as cacheable. Other features and advantages of the present invention Will be apparent from the folloWing discussion. terms, numbers or the like. It should be borne in mind, hoWever, that all of these and similar terms are to be associated With the appropriate physical quantities and are merely convenient labels applied to these quantities. Moreover, unless speci?cally stated otherWise, it Will be appreciated that throughout the description of the present BRIEF DESCRIPTION OF THE DRAWINGS The present invention is illustrated by Way of example, and not limitation, in the ?gures of the accompanying draWings in Which like reference numerals refer to similar elements and in Which: operations on data Within a computer memory. These algo rithmic descriptions and representations are the means used by those skilled in the computer science arts to most effectively convey the substance of their Work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of non-cacheable object according to a port on Which the example, the URLs may include port designations identify Although discussed With reference to certain illustrated embodiments, upon revieW of this speci?cation, those of ordinary skill in the art Will recogniZe that the present scheme may ?nd application in a variety of systems, perhaps scheme, use of terms such as “processing”, “computing”, “calculating”, “determining”, “displaying”, “rendering” or 45 FIG. 1 illustrates an example of a netWork architecture that may alloW for a client-server dialog With or Without the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipu lates and transforms data represented as physical (electronic) quantities Within the computer system’s registers and memo ries into other data similarly represented as physical quan caching. FIG. 2 illustrates an example of a procedure to be used by tities Within the computer system memories or registers or other such information storage, transmission or display devices. Again, these are the terms and descriptions com a router or other node for determining Whether or not to direct a client request to a cache for ful?llment. FIG. 3 illustrates an example of a process for creating a monly used by and among practitioners of ordinary skill in Web page With customiZed URLs for cacheable objects. the relevant arts. DETAILED DESCRIPTION pages and the like using port designators Within uniform resource locators (URLs) that identify Where the objects can Turning noW to FIG. 2, some further details regarding the present solution to the basic problem outlined above can be stated. In a netWork con?guration such as that shoWn in FIG. 1, under the present scheme When the router 12 receives a request from a client (step 20), a check is made to determine be found. In essence, the scheme calls for the use of a port Whether the request is for a cacheable or non-cacheable number (e.g., port 81) other than the Well-knoWn port 80, object (step 22). If the request is for a cacheable object, the request is passed to cache 16 (step 24) as before. HoWever, 55 Disclosed herein is a scheme for differentiating cacheable from non-cacheable objects that may be referenced in Web Which is used for conventional http requests, to designate those objects that should be cached. Thus, any requests received on this neW port (e.g., port 81) may be cached (i.e., the request may be referred to a cache) While those made on port 80 (or other Well-knoWn port number) may be alloWed to pass straight through to an origin server (or vice-versa). 65 Where the request is for a non-cacheable object, it is passed directly to the origin content server 18 (step 26). One advantage of this scheme is that most conventional routers can easily and very quickly make redirection decisions based on port numbers. It is much more time consuming to