I am trying to speed up the Meteor application by loading enough web page content to get <head>my HTML tag to get its name, image and description. I have a client calling the server method with the following code:
Meteor.call("metaGetter", url, function(err, res){...});
And on the server side, in the method metaGetter, I use Meteor HTTP.call:
var result = HTTP.call('GET', url, {headers: {'content-range': "bytes 0-100"}});
as indicated in the Meteor documentation. I can get the result, html. However, after printing the returned headers, I do not see the attribute content-rangethat I was trying to set.
Edit: Akshat solution works, but only for some websites, in fact, very few. Any help would be greatly appreciated.
source
share