Download-File-JS
Download-File-JS copied to clipboard
The code on this page disabled back and forward caching.
I tried the demo page and change the sUrl on the fly with a random image I found in Google. Instead of downloading the file, the page was redirected to the file and display the image in the page. I'm getting something from my console though.. "The code on this page disabled back and forward caching." Any idea how to deal with this issue?
Can you share your code to test?
I actually just ran the downloadFile() function in console of dev tools in IE and passed a random image from Google while in the demo page. The thing is, the code below works fine in Chrome and Firefox.
downloadFile('http://imagescdn.tweaktown.com/news/5/6/56946_06_asus-teases-new-gtx-1080-ti-rog-poseidon.jpg');