Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEM AND METHOD FOR CACHEING WEB FILES
Document Type and Number:
WIPO Patent Application WO/2007/131206
Kind Code:
A3
Abstract:
A system and method receives a request for a file containing an identifier of the requested file and a message digest, containing an expected hash result of the requested file. The system and method identifies whether it has already stored a file having that identifier and a hash result matching the message digest. If so, the file is provided, optionally after being checked for authenticity via rehashing and comparing again to the message digest. If the file is not stored in the cache, it may be retrieved from a location included in the identifier, hashed and compared to the message digest to authenticate it, and provided to the requesting program if the hash result matches the message digest.

Inventors:
THOMASON LEE (US)
Application Number:
PCT/US2007/068297
Publication Date:
October 09, 2008
Filing Date:
May 04, 2007
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ADOBE SYSTEMS INC (US)
THOMASON LEE (US)
International Classes:
A63F13/00; H04L9/32
Foreign References:
US20050188216A12005-08-25
US20050009599A12005-01-13
Other References:
See also references of EP 2016704A4
Attorney, Agent or Firm:
HUNTER, William, E. (P.O. Box 1022Minneapolis, Minnesota, US)
Download PDF:
Claims:

What is claimed is.

1. A method of providing a file ii response to a request, comprising: receiving, on a first computer system, the request foi the file, the request comprising a message digest and a location corresponding to a second computer system other than the first computer system, the first computer system coupled to the second computer system over a network, determining whether a file mg a hash result corresponding to the message digest was stored in a storage area prior to the receiving of said request step; responsive to the fi Ie having the hash result corresponding to the message digest beinq stored in the storage area prior to the receiving of said request step, providing the file from the storage area m response to the request; and responsive to no file having the hash result corresponding to the message digest being stored in the storage area prior to the receiving of said request step: retrieving the file from the second computer system responsive to the location, storing the file retrieved in the storage area; hashing the file jsmq i has 1 " functior tc tr odi r hash result; comparing the hash result with the message digest, and responsive to the hash result corresponding to the message digest, providing the file in response to the request .

2. The method of claim 1, wherein the stored file was received from a first Internet domain ana is provided to a program supplied by a second Internet domain.

3. The method of claim 1, additionally comprising, responsive to the hash result not corresponding to the message digest, providing an error message.

4. The method of claim 3 wherein the file is not provided if the error message is provided.

5. The method of claim I wherein + he hash function comprises a cryptographically secure hash function.

6. The method of claim 5 wherein the cryptographically secure hash function comprises SHA-I.

7. The method of claim 1, wherein the determining step is responsive to a plurality of files in the storage area, such files received from a plurality of Internet domains.

8. A system for providing a t: Ie in response to a request, comprising: a file request receiver on a first computer system, the file request receiver having a first input operatively coupled for receiving the request for the file, the request comprising a message digest and a location corresponding to a second computer system other than the first computer system, the first computer system coupled to the second computer system over a network, the file request receiver for providing at a first input/output the message digest; a cache manager having a first mpαt/output coupled to the file request receiver input /output for receiving the message digest, the cache manager for determining via a second input/output coupled to a storage area whether a file having a hash result corresponding to the message digest was stored in

the storage area and for providing at the first input /output at least one selected from the group comprising: an identifier of said file responsive to the file being stored in the storage area; and an indication that said file is not stored in the storage area; wherein the file request receiver is additionally for: receiving the identifier of the fiie or the indication via the request receivei first input/output, responsive to the identifier of the file, retrieving the file from the storage area via a second input/output in response to the request and providing the file at a first output; and responsive to the indication, providing the identifier of the file and the message digest at a second output; and additionally comprising: a file retriever having an input coupled to the request receiver second output, the file retriever for retrieving the file via a first input /output from the second computer system responsive to identifier, storing the file retrieved in the storage area via a second input/output and providing an identifier of the file at an output; a file hasher having an input coupled to the file retriever output for receiving the identifier of the file, the file hasher for hashing the file using a hash function to produce a hash result and for providing the hash result at an output ; a hash compare manacjer having an input coupled to the request receiver second output for receiving the message digest and to the file hasher output for receiving the hash result, the hash compare manager for comparing the hash result

with the message digest and providing at an output an indication of the result of said comparison; and wherein the file request receiver additionally comprises a second input coupled to the hash compare manager output for receiving the indication, and the file request receiver additionally provides the file at the file request receiver first output responsive to the indication indicating the hash result corresponds to the message digest.

9. The system of claim 8, wherein the stored file was received from a first Internet domain and is provided to a program supplied by a second Internet domain.

10. The system of claim 8, wherein the file request receiver is additionally for providing an error message at the file request receiver first output, responsive to the indication indicating that the hash result does not correspond to the message digest.

11. The system of claim 10 wherein the file is not provided by the file request receiver if the error message is provided .

12. The system of claim 8 wherein the hash function comprises a cryptographical Iy secure hash function.

13. The system of claim 12 wherein the cryptographical Iy secure hash function comprises SHA- i .

14. The system of claim 8, wherein the cache manager determined via the second input/output coupled to the storage area whether the file having a hash result corresponding to the message digest was stored in the storage area, responsive to a plurality of files in the storage area, such files received from a plurality of Internet domains.

15. A computer program product comprising a computer useable medium having computer readable program code embodied

therein for providing a file in response to a request, the computer program product comprising computer readable program code devices configured to cause a computer system to: receive, on a first computer system, the request for the file, the request comprising a message digest and a location corresponding to a second computer system other than the first computer system, the first computer system coupled to the second computer system over a network; determine whether a file having a hash result corresponding to the message digest was stored in a storage area prior to the receiving of said request step; responsive to the file having the hash result corresponding to the message digest being stored in the storage area prior to the receiving of said request step, provide the file from the storage area _n response to the request; and responsive to no file having the hash result corresponding to the message digest being stored in the storage area prior to the: receiving of said request step: retrieve the file from the second computer system responsive to the location; store the file retrieved in the storage area; hash the file using a hash function to produce a hash result; compare the hash result with "he message digest; and responsive to the hash result corresponding to the message digest, provide the file in response to the request.

16. The computer program product of claim 15, wherein the stored file was received from a first Internet domain and is provided to a program supplied by a second Internet domain.

17. The computer program product of claim 15, additionally comprising computer readable program code devices configured to cause the computer system to, responsive to the hash result not corresponding to the message digest, provide an error message.

18. The computer program product of claim 17 wherein the computer program product causes the computer system not to provide the file if the error message is provided.

19. The computer program product of claim 15 wherein the hash function comprises a r ryptographical Iy secure hash function .

20. The computer program product of claim 19 wherein the cryptographically secure hash function comprises SHA-J.

21. The computer program product of claim 15, wherein the computer readable program code devices configured to cause the computer system to determine are is responsive to a plurality of files in the storage area, such files received from a plurality of Internet domains .

Description:

System and Method for Cacheing Web Files

Field of the Invent ion

The present invention is related to computer software and more specifically to computer software for cacheing of web files.

Background of the Invention

Many conventional programs retrieve files over the Internet. To save the t Line of retrieval of the same file over and over again, many computer systems store the files they retrieve into a cache, and subsequent retrievals are first attempted from the cache. When a system employs a cache, if the computer system receives a request for a file, it first checks the cache. If the file is m th<= cache, the computer system retrieves the file from the cache. Because the retrieval of a file from a local hard drive can be much faster than retrieving the file from the Internet or other network, the retrieval of the file from the cache can significantly speed the retrieval of a file. If the file is not m the cache, the file is retrieved from the Internet.

However, conventional caching systems are neither secure nor precise. If the requested fixe has been corrupted, by a malicious party for example, the cache may not detect the corruption and will supply the file. If a new version of the file is available with the same name, the caching system will not distinguish the versions and can supply the older version.

Some conventional biowsers attempt to resolve this problem by only retrieving files from a cache if the file was originally retrieved from the same Internet domain as the file or program corresponding to the source of the request.

Although this can help prevent the problems of corruption or version incompatibility, it results m slower download times

I

because files in the cache are downloaded again. Tt also does not detect the corruption of a file or an incorrect version.

What is needed is a system and method for caching files that supply files from a cache having an original source of any domain, but can detect the corruption or the storage of an incorrect version of the file in the cache and supply the uncorrupt file or requested version, even if another version having the same file name is stored in the --ache .

Summary of Invention A system and method allows a program to request a file using a hash result and network location of the file. The system and method references the files m the cache and identifies whether any file stored in the cache has that hash result. If so, the system and method provides the fi Ie from the cache. Ef not, the system and method retrieves the file from the network location, hashes the file, and stores the file associated with the hash result, and optionally the network location from which the file was retrieved, for use as described above. The hash result is checked against the hash result in the request. If the hash results match, the system and method provides the file and if not, the system and method provides an indication that the requested file is unavailable.

Brief Description of the Drawings

Figure 1 is a block schematic diagram of a conventional computer system.

Figure 2 is a block schematic- diagram of a system for providing requested files according to one embodiment of the present invention.

Figure 3 is a flowchart illustrating a method of a method of providing requested files according to one embodiment of the present invention.

Detailed Description of a Preferred Embodiment

The present invention may be implemented as computer software on a conventional computer system. Referπnq now to Figure 1, a conventional computer system 150 for practicing the present invention is shown. Processor 160 retrieves and executes software instructions stored m storage 162 such as memory, which may be Random Access Memory (RAM) and may control other components to perform the present invention. Storage 162 may be used to store program instructions or data or both. Storage 164, such as a computer disk drive or other nonvolatile storage, may provide storage of data or program instructions. In one embodiment, storage 164 provides longer term storage of instructions and data, with storage 162 providing storage for dat a or instructions that may only be required for a shorter t rre t-han that of storage 164. Input device 166 such as a computer keyboard or mouse or both allows user input to the system 150. Output 168, such as a display or printer, allows the system to provide information such as instructions, data or other information to the user of the system 150. Storage input device 170 such as a conventional floppy disk drive or CD-ROM drive accepts via input 172 computer program products 174 such as a conventional floppy disk or CD-ROM or other nonvolatile storage media that may be used to transport computer instructions or data to the system 150. Computer program product 174 has encoded thereon computer readable program code devices 176, such as magnetic charges m the case of a floppy disk or optical encodings in the case of a CD-ROM which are encoded as program instructions, data or both to configure the computer system 150 to operate as described below.

In one embodiment, each compute i system 150 is a conventional SUN MICROSYSTEMS ULTRA 10 workstation running the SOLARIS operating system commercially available from SUN

MICROSYSTEMS, Inc. of Mountain View, California, a PENTIUM- compatible personal computer system such as are available from DELL COMPUTER CORPORATION of Round Rock, Texas running a version of the WINDOWS operating system (such as 95, 98, Me, XP, NT or 2000) commercially available from MICROSOFT

Corporation of Redmond Washington or a Macintosh computer system running the MACOS or OPENSTEP operating system commercially available from APPLE COMPUTER C ORPORATION of Cupertino, California and tne NETSCAPE browser commercially available from NETSCAPE COMMUNICATIONS CORPORATION of Mountain View, California or INTERNET EXPLORER browser commercially available from MICROSOFT above, although other systems may be used .

Receive Request. File request receiver 220 receives a file request from the program. The request includes the message digest of the requested file, which is an expected vaJue of a result from hashing the file using a conventional iash function. The request also includes the source of the requested file, which may be in the form of a URL specifying the location from wri;h the file may be obtained. When file request receiver 220 receives the file request from the proqiam, file request receiver 220 determines if it can provide the file to the program. To do so, file request receiver 220 sends the message digest to cache manager 230. Check Cache.

When cache manager 230 receives the message digest from file request receiver 220, cache manager 230 determines if the requested file is listed m file information storage 242 as being stored in file cache 240. Fo determine ±1 the requested file is listed in file information storage 242, cache manager 230 compares the message digest received from file request receiver 220 with the hash results in file information storage

242 and, using any conventional technique, searches tor a match between the message digest of the requested file and a hash result in file information storage 242. File information storage 242 may be either disk or memory storage or both and may contain a conventional database such as an internal list of records denoting which files are stored m file cache 240. The records m file information storage 242 are arranged sucπ that a hash result of a file is associated with the filename of that file, which may be any unique identifier of the fi e In one embodiment, the filename of the file may be the URL of the file specifying the location of the file from which it was retrieved. In one embodiment, cache manager 230 searches fiJe information storage 242 for a matching hash result by starting at the top of the list of records in file information storage 242 and comparing the message digest of the requested file to each hash result on the internal list maintained by file information storage 242. If a hash result does not match the message digest of the requested file, cache manager 230 proceeds to the next hash result m the list until cache manager 230 finds a match to the message 1 digest of the requested file or reaches the end of the list of hash results m file information storage 242. In other embodiments, file information storage 242 is sorted by hash results, and cache manager 230 uses a binary locate the hash result matching the message digest .

In one embodiment, files m file cache 240 to which the requested file is being checked against can originate from different Internet domair sources. Such files will have been stored m file cache 240 through various operations of system 200.

Provide a Handle to the File or an Error Message. If cache manager 230 finds a match between the message digest of the requested file and a hash result stored m file information storage 242, cache manager 230 obtains from file

information storage 242 the source identifier associated with the hash result from file information storage 242. When cache manager 230 receives the filename associated with the hash result matching the message digest of the requested file, cache manager 230 retrieves the handle to the file from file cache 240 using operatincj system 254 or the database. To retrieve the handle to the file in file cache 240, cache manager 230 requests a handle from operating system 254 for the file Located in file cache 240 that matches the name of the file it located as described above. File cache 240 may be disk or memory storage or both. Operating system 254 provides cache manager 230 with the handle of the file in file cache 240 matching the message digest provided by file request receiver 220. Cache manager 230 provides the handle of the requested file to file request receiver 220.

In one embodiment, when file request receiver 220 receives the handle to the requested file from cache manager 230, file request receiver 220 provides the handle to the program requesting the file. In another embodiment, file request receiver 220 instead causes the file to be hashed again as described below, and then attempts to authenticate the file as described below. If the file is determined to be authentic, file request receiver 220 provides the handle to the file to the program requesting the file. Tf the file ip determined not to be authentic as described below, file request receiver 220 treats the situation in the same manner as if cache manager 230 had not located a match between the message digest of the requested file and any of the hash results listed in requested file information storage 242, as described in more detail below, causing an attempt to be made to retrieve the file as described in more detail below.

If cache manager 230 does not find a match between the message digest of the requested file and any of the hash results listed in file information storage 242, cache manager

230 returns to file request receiver 220 a message indicating that the requested file could not be found m file information storage 242. When file request receiver 220 receives such a message from cache manager 230, file request receiver 220 proceeds to retrieve and authenticate the file as described below .

It is noted that file information storage 242 may contain the hash results and identifiers of files from different Internet domains. When cache manager 230 determines whether there Ls a match between tie hash results stored in file information storage 242 and the message digest it receives, it may compare the message digest with the hash results of many previously stored files, downloaded from a number of different Internet domains . If the File is Not In The Cache, Retrieve and Store the File.

When file request receiver 220 receives an indication from cache manager 230 that the file is not in file cache 240, file request receiver 220 proceeds to retrieve the file frcm the source of the file. To do so, file request receiver 220 provides file retriever 250 with ^he source of the requested file received in the original request as described above. File retriever 250 uses communication interface 210 to retrieve the file from a local or network location specified in the source of the file, using conventional file retrieval methods. In one embodiment, communication between the network and system 200 is made via input/output 208 of communication interface 210 which is coupled to a network such as the Internet or a local area network or both. Communication interface 210 is a conventional communication interface that supports TCP/IP, Ethernet, and/or other conventional communication protocols.

When file retriever 250 retrieves the file from the network location specified by the source of the file, file retriever 250 uses operating system 254 to store the file in file cache 240 using a name or other unique identifier assigned by file retriever 250. In one embodiment, the unique identifier for the file stored in file cache 240 is the URL of the location of the file from which it was received, which is referred to herein as the source of the file. File retriever 250 receives a handle from operating system 254 for the retrieved file stored in file cache 240.

Hash the File and Associate the Hash Result With the File To ensure that the file retrieved is the file requested, file retriever 250 provides the handle of the retrieved file in file cache 240 to file hasher 252. When file hasher 252 receives the handle of the retrieved file, file hasher 252 reads the file and hashes the file using conventional hashing techniques. In one embodiment, the hash function used to hash the file is any cryptographically secure hash function such as the SHA-I hash function. A cryptograpm cally secure hash function is a hash function with a large number of potential hash results, and for which small changes to the input to the hash function is highly likely to produce a different hash result. The SHA-I hash function and o t hers are described in Schneier, Applied Cryptography (Wiley, ^ d ed . I4 c -ι6) ISBN: ')- 471-11709-9. The hashing of the retrieved f L Ie by file hasher 252 produces a hash result, which file hasher 252 returns to file retriever 250.

When file retriever 250 receives the hash result from file hasher 252, file retriever 250 stores the hash result of the retrieved file and the unique identifier of the retrieved file into file information storage 242 so that file information storage 242 wilL include the hash result and

associated unique identifier in its internal database for use as described above .

File retriever 250 provides file request receiver 220 with the handle of the retrieved file and the hash result of the retrieved file to allow file request receiver 220 to authenticate the retrieved file and ensure that the retrieved file matches the file requested by the program. Authenticate the File To authenticate the retrieved file and ensure that Lt matches the file requested by the program, file request receiver 220 sends a compare request to hash compare manager 260 that includes the hash result of the retrieved file and the message digest of the requested file. When hash compare manager 260 receives the compare request, hash compare manager 260 compares the hash result of the retrieved file and the message digest of the requested file and determines if the two elements match each other. If the two elements match each other, hash compare manager 260 srgnals file request receiver 220 with the indication that the file retrieved is the file requested. If the two elements do not match each other, hash compare manager 260 signals file request receiver 220 with an error message indicating that the file retrieved does not match the file requested.

Provide a Handle to the File or an Error Message. File request receiver 220 receives from hash compare manager 260 either the message indicating that the requested file is the retrieved file or the message indicating that the requested file is not the retrieved file. If file request receiver 220 receives an indication that the requested file is the retrieved file, file request receiver 220 provides the program from which it received the request with the handle to the file retrieved now located m file cache 240. If file request receiver 220 receives the error message stating that the retrieved file does not match the requested file, file

request receiver 220 signals the program with an error message indicating that the file is not availabJe.

The program receives either the handle to the requested file or an error message indicating that the requested file is not available. If the program receives the handle of the requested file, the program can read the file from file cache 240 via operating system 254 and continues running until terminated. If another file is requested, the process described above is repeated. If the program receives an error message indicating that the requested file is not available, the program either continues running without the file or terminates .

In one embodiment, the program that is using the file displays the output in a browser window. The program may be a browser or a plug-in to the browser such as a Flash Player application .

A request is received for a file 310. The request may include the source of the requested file and the message digest of the requested file. The cache is checked for the requested file 312 as described above. If the requested file is located in the cache 314, in one embodiment, the handle to the requested file located in the cache is provided to the entity from which the request for the file was received 316 and the method terminates 318. Otherwise 314, the method continues at step 320. In another embodiment indicated by the dashed line in the Figure, if the requested file is located m the cache 314, the method continues at step 322

The requested file is retrieved and stored in the file cache or other file storage device with a unique identifier and associated with its source 320. The retrieved file is hashed to produce a hash result 322. The hash result is associated with the retrieved frle and stored associated with the file 324. The hash result of the retrieved file is

compared with the message digest of the requested file 326. If the hash result of the retrieved fi]e and the message digest of the requested file are a match 328, the method continues at step 316 as described above. If the hash result of the retπeveα file and the message digest of the requested file do not match 328, an indication of error is provided to the program 330 and the method terminates 318.

The system and method may thus be used to provide a fil< received from one Internet domain to a program that has been downloaded from another Internet domain. The message digest in the request can help ensure not only the authenticity of the file, but also the program's permission to use the file.