I am not sure if this is an Excel (SuperUser) or WebMasters question since I may have exhausted the server option.
Use case
Our site allows downloading a result list in XLS format. A hyperlink is present for each result which will load the result into the default browser.
Looking in our log file we find several requests per click:
OPTIONS (which I have now generating a 405 - when I started this quest it was returning all options with a 200OK, but then I read Stopping Microsoft Office 2010 from integrating with Subversion server as if it's Sharepoint and KB838028 )
Link Pre-fetching HTTP GET from MSIE 7.0 user agent (Microsoft's built-in URL handler) - 200 OK - 2/3rds of the actual data
HTTP GET from IE 11 user agent - 200 OK - full data
Log file entries
1.2.3.4 - - [17/Oct/2014:11:20:02 +0200] "OPTIONS /myfolder/ HTTP/1.1" 405 36 "-" "Microsoft Office Protocol Discovery" - -
1.2.3.4 - - [17/Oct/2014:11:20:02 +0200] "GET /myfolder/mypage?myparm=myvalue HTTP/1.1" 200 57288 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; ....; InfoPath.3; ms-office)" - -
1.2.3.4 - - [17/Oct/2014:11:20:03 +0200] "GET /myfolder/mypage?myparm=myvalue HTTP/1.1" 200 75326 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" - -
The second request is a waste of bandwidth and likely server processing
Is there a way on the server to not serve data on the 2nd request which I guess Excel loads just in case it was something it could show and then gives up when it isn't?
In the link Microsoft Office Link Pre-fetching and Single Sign-On given by @Perry I see an enticing
RewriteCond %{HTTP_USER_AGENT} ;\sms-office(\)|;) [I] ...
but I cannot see how I can leverage this to have Execel NOT partly download the file we need to open in the default browser
UPDATE
I saw some office clients actually send ms-office
as part of the user agent
But not mine. My win7 Office 2013 sends
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
UPDATE: Will abandon this, but with a suggestion:
If you produce links in an actual excel sheet and you are certain you do not want to support IE7 for the actual page, add a parameter to the link and return 200OK with empty payload to MSIE 7
user agents.