CacheFile.net is donationware, free to use for any site, with no limitations. Please show your support by submitting a donation.

We are currently evaluating alternative options for a Content Delivery Network (CDN) besides Coral CDN. While our integration with Coral CDN was successful upon launch, time has proven Coral CDN to be inadequate as it is slow and sometimes unstable.

If you know of an ideal alternate CDN, or you wish to make a CDN donation of any sort, please post a suggestion in the forum. Thanks!

- Jon Davis, jon@jondavis.net

CacheFile

All your cache are belong to us.

"If all web sites used a common URI for each frequently used web resource, the user's browser would only download that resource once, until the user's cache is either cleared or expired."

Find permanent resources now:

Scripts
Graphics
 

Non-permanent web resources (for consideration and/or convenience):

Creative / Experimental
 

CacheFile.net is an HTTP web server that contains common Internet resources that are frequently reused on other web sites. It exists to alleviate the need for a common root URL for web resources that are otherwise not directly linkable at their primary URLs.

For example, popular Javascript libraries may have a direct download link for a specific version of their script files, but may discourage the direct linking of these files on their site. People are instead encouraged to download the scripts and manage them on their own servers. But the problem with each web site retaining its own copy of the same resources is that web users must re-download them all over again as they navigate from site to site. Over browsing five different dojo-driven web sites using the same version of dojo, there may be five different copies of the script being seperately downloaded.

If all web sites used a common URI for each frequently used web resource, the user's browser would only download that resource once, until the user's cache is either cleared or expired.

Example for your web site:
Replace <script type="text/javascript" src="/js/dojo/1.0.0/dojo/dojo.js"></script>
with <script type="text/javascript" src="http://cachefile.net/scripts/dojo/1.0.0/dojo/dojo.js"></script>

Finding Shared URLs

To find the file URL to use on your web site, click on the appropriate scripts or graphics link above and navigate to the file. Then right-click the hyperlink to the file to access the hyperlink's context menu and choose "Copy Shortcut" or "Copy Link Location" or equivalent, or choose Properties, and you can view the URL, which in most web browsers can be highlighted and copied to the clipboard.

Checking For Consistency

You can perform an MD5 hash signature check of any script by appending ".md5" to the URL. For example, to get the MD5 signature of http://cachefile.net/scripts/json/json.js, perform a GET for http://cachefile.net/scripts/json/json.js.md5.

Specifying Expiration Dates

By default, resources hosted on CacheFile.net are set to expire in one year. You can specify the cache expiration directly in the querystring of your reference. For example, if you would like the expiration of the file to be January 1, 2009, you can specify as such:

<script type="text/javascript" src="http://cachefile.net/scripts/dojo/1.0.0/dojo/dojo.js
?expires=Thu,+01+Jan+2009+00:00:00+GMT"></script>


This is not typically the best approach as it creates a seperate cache entity for web browsers because querystrings are treated as different URI, but the feature was added for flexibility. You should not use this feature with a dynamic date value or the resource will never be reused in the browser's cache, but for a static future-dated item this feature may be useful to some web sites.

 
 

 

Access popular Javascript scripts.

Access commonly used graphics.

Browse creative & experimental tentative resources.

Access the forums to read, rant, or rave!

Read the opening explanation of the site objectives.