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

any way enable no-cache? #4

Open
MSFTserver opened this issue Nov 27, 2017 · 1 comment
Open

any way enable no-cache? #4

MSFTserver opened this issue Nov 27, 2017 · 1 comment
Labels

Comments

@MSFTserver
Copy link
Contributor

MSFTserver commented Nov 27, 2017

seems whenever my browser caches the webpage it throws a virus error due to coinhives script being cached its not a big issue as coinhive script has just been flagged as malware due to people hiding it in other programs but it would be nice if we someone could add no-caching somewhere or somehow if it is possible

@C0nw0nk
Copy link
Owner

C0nw0nk commented Nov 27, 2017

I would say look into grabbing the following .js file.

createScriptElement.src = 'https://coinhive.com/lib/coinhive.min.js';

Instead of inserting the javascript source tag like this anymore, To use XMLHTTPRequest to get the coinhive library contents and then run it like that.

https://stackoverflow.com/questions/3728798/running-javascript-downloaded-with-xmlhttprequest (May work also may not work) Just a idea it should not cache it though since it will be the HTML headers your site / server sends it uses now.

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

No branches or pull requests

2 participants