-
公开(公告)号:US20040267702A1
公开(公告)日:2004-12-30
申请号:US10610142
申请日:2003-06-30
Applicant: Chaparral Network Storage, Inc.
Inventor: David Gallant , Rex Vedder
IPC: G06F017/30
CPC classification number: G06F17/30902 , Y10S707/959 , Y10S707/99943
Abstract: A method for improving performance through selective file caching is disclosed. The caching policy of a client's browser cache is set to cache all files. Web page files that reference a dynamic file include JavaScript code that mangles the dynamic filename, such that a reference by the web page file to the dynamic file is unique each time a browser, processes the web page file. In one embodiment, the filename is mangled by appending to it a known string followed by a 12-digit timestamp. Consequently, the mangled filename misses in the cache, forcing the browser to fetch the dynamic file from the web server. The web server recognizes the filename is in the mangled format, regenerates the original filename, and returns the file to the client. Static filenames are not mangled; hence, they are satisfied from the browser cache. The method also works to selectively defeat network caching.
Abstract translation: 公开了一种通过选择性文件缓存来提高性能的方法。 客户端浏览器缓存的缓存策略设置为缓存所有文件。 引用动态文件的网页文件包含影响动态文件名的JavaScript代码,使得网页文件对动态文件的引用在每次浏览器处理网页文件时都是唯一的。 在一个实施例中,文件名通过向其附加一个已知的字符串,后跟一个12位数的时间戳而被破坏。 因此,缓存中的文件名错误,强制浏览器从Web服务器获取动态文件。 Web服务器识别出文件名处于格式错误,重新生成原始文件名,并将该文件返回给客户端。 静态文件名不受影响; 因此,它们从浏览器缓存中得到满足。 该方法还可以有选择地打败网络缓存。