在CDN上托管Javascript / CSS文件,类似于Google托管jQuery [英] Hosting Javascript/CSS file on CDN similar to Google hosting jQuery

查看:75
本文介绍了在CDN上托管Javascript / CSS文件,类似于Google托管jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何主机,或者我是否可以在Google上托管我的文件(JS和CSS),以便将它们缓存并真正快速加载(由于CDN和gzip)。

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).

我的许多客户都使用这些文件,我希望他们能以某种方式将其包含在文件中以接收JS文件。理想情况下,使用filename.js?publickey = sdfgsdfg(将绑定到特定域名)。

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).

问题是我的托管需求非常小-仅约100kb 。

The problem is that my hosting needs are very small- only about 100kb.

有什么建议吗?我的问题是使用JS& CSS文件,不知道有关gzip压缩内容或缓存的信息(因为它们的共享主机不支持),因此导致JS / CSS永远需要加载。我想知道我是否可以利用现有的免费服务,还是不介意付费。

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.

推荐答案

尝试 SimpleCDN 。您可以非常便宜地存储文件,流量也不是那么贵。有人抱怨他们的服务-我没有异议。

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.

这篇关于在CDN上托管Javascript / CSS文件,类似于Google托管jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆