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

Pre-fetch files whose links are not yet on the page. #6

Open
aviau opened this issue Oct 21, 2016 · 1 comment
Open

Pre-fetch files whose links are not yet on the page. #6

aviau opened this issue Oct 21, 2016 · 1 comment

Comments

@aviau
Copy link

aviau commented Oct 21, 2016

I would like to use CacheP2P to cache mostly images.

My website is not a static websites, so most links on my pages point to a dynamic page.

However, those dynamic pages contain images which are static.

How can I use cachep2p to cache those static images?

I will generate a cachep2p.security.js that contains the checksum of all of my images.

Now, will cachep2p pre-fetch them?

I didn't look much at the codebase but that can probably work by replacing all links by functions that makes the request and replace image links by cached ones.

Now we would a way need to indicate CacheP2P what images to pre-fetch.

@Quix0r
Copy link

Quix0r commented Nov 2, 2016

I'm having the same setup here: most images/CSS is static, HTML pages are dynamic. It would be helpful if CacheP2P can be reprogrammed to cache those static files (caching dynamicall generated content makes no sense, of course). And static HTML pages are somehow ... out-dated. ;-)

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