I am wondering if there are any hosts or if I can host my file (JS & CSS) on Google so that they are cached and load real quick (due to CDN and gzip).
A number of my customers use these files and I would prefer if they could somehow include this to file to receive the JS file. Ideally with filename.js?publickey=sdfgsdfg (which will be tied to a particular domain name).
The problem is that my hosting needs are very small- only about 100kb.
Any suggestions? My problem is that the customers using the JS & CSS file, have no clue about gzipping content or caching (as their shared hosts do not support it), as a result causes the JS/CSS to take forever to load. Am wondering if I can leverage an existing free service, or I do not mind paying either.
Try SimpleCDN. You can store your files very cheap and the traffic is also not that expensive. Number of people have complained to their service - I have no objections.
CDNJS.com allows you to submit a pull request to their GitHub account to get a JavaScript library on their CDN. I've been attempting to get a CSS library added on their forum old and abandoned forum.
If you're comfortable with the Amazon cloud platform, you can use CloudFront. You don't need to use it with S3, but you can.
You can try Amazon AWS CloudFront for quick content delivery. Amazon CloudFront works seamlessly with any origin server, which stores the original, definitive versions of your files.
Here comes the JQGrid CDN Link
Use Cloudflare. It will take care of all your JS CSS files, with added security to your whole system.
来源:https://stackoverflow.com/questions/1470981/hosting-javascript-css-file-on-cdn-similar-to-google-hosting-jquery