Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local CDN response resource without cache header #4

Open
lawrenceching opened this issue Feb 17, 2017 · 2 comments
Open

Local CDN response resource without cache header #4

lawrenceching opened this issue Feb 17, 2017 · 2 comments

Comments

@lawrenceching
Copy link

Hi, dev of local-cdn,

I noticed that local-cdn return resource very simply without any cache policy header.
It leads to browser request data every time.


Test Case:
Use chrome to visit getbootstrap.org, measures how much time chrome spend to load jquery.min.js

First time: 498ms
Second time with local-cdn disabled: 78ms (from disk cache)
Second time with local-cdn enabled: 254ms

@james-fray
Copy link
Owner

I am not sure if setting cache is possible when you are redirecting to a local resource.

On the test page getting each resource takes like 20ms
See, https://cdn.rawgit.com/james-fray/local-cdn/master/test/text.html

@james-fray
Copy link
Owner

screen shot 2017-02-19 at 12 00 48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants