Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 921251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:50:40+00:00 2026-05-15T18:50:40+00:00

Setup: IIS7 serving ASP classic VB script code which generates a dynamic VSC page/file

  • 0

Setup:

IIS7 serving ASP classic VB script code which generates a dynamic VSC page/file with headers to download.

Response.ContentType = "text/x-vCalendar"
Response.Expires = -1
Response.Buffer = True
Response.Clear
Response.AddHeader "Content-Disposition", "filename=" & strFileName & ".vcs;"
Response.Write strFileContent

Our IIS7 serrvers are behind a nginx reverse proxy. Everything is working fine, except this file download.

Problem:

When using IE and going in through the reverse proxy (load balancer) the file is not downloading as a .vcs but wanting to download the .asp file/page.

When using other browsers through the reverse proxy (load balancer) it works fine.

When using IE and bypassing the reverse proxy (load balancer), going straight to the IIS server, it works fine.

Assumption:

Sounds like it’s a HTTP header issue. The only differences I could find in the responses were the additional response headers of:

Connection: keep-alive
Vary: Accept-Encoding

Header Responses:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 1431
Content-Type: text/x-vCalendar
Expires: Fri, 09 Jul 2010 13:26:38 GMT
Server: Microsoft-IIS/7.5
Content-Disposition: filename=2507541_16268.vcs;
X-Powered-By: ASP.NET
backend: iis1
Date: Fri, 09 Jul 2010 13:27:37 GMT

HTTP/1.1 200 OK                                                   
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: private
Content-Length: 1431
Content-Type: text/x-vCalendar
Expires: Fri, 09 Jul 2010 13:26:19 GMT
Server: nginx
Content-Disposition: filename=2507541_16268.vcs;
X-Powered-By: ASP.NET
backend: iis1
Date: Fri, 09 Jul 2010 13:27:15 GMT

Request

Is there any light anyone can shed on the issue?

nginx settings to change, or ASP code to add?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:50:41+00:00Added an answer on May 15, 2026 at 6:50 pm

    So I finally figured this out, thought I’d post it for anyone else who needed the assist.

    I commented out the gzip_vary line, from my nginx.conf file – that seemed to fix things but I chose not to set the setting to “off” because I didn’t want to forcefully remove the Vary header from other browsers where things were working… commenting out worked.

    # commenting this out seemed to work, but I could have set to: off
    # gzip_vary on; 
    

    additionally, I also told gzip to disable for IE6.

    Gotcha: I found that specifying an expires header also caused problems. I suggest you comment out any expires directives while testing and figure out how to filter out as needed.

    so, for good measure, here’s the updated compression part of my conf for nginx

     ## Compression
      gzip              on;
      gzip_buffers      16 8k;
      gzip_comp_level   6;
      gzip_http_version 1.0;
      gzip_min_length   0;
      gzip_types        text/plain text/css image/x-icon text/html text/xml application/x-javascript;
      #gzip_vary         on;
      gzip_disable     "msie6";
      gzip_proxied     any;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 499k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is not pretty but it works: rm -R $(ls… May 16, 2026 at 12:45 pm
  • Editorial Team
    Editorial Team added an answer Yes. Override the base1 and base2 methods in Derived to… May 16, 2026 at 12:45 pm
  • Editorial Team
    Editorial Team added an answer No, you can't. Unfortunately, UIEvent doesn't expose any public way… May 16, 2026 at 12:45 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm using IIS7 and ASP.NET. Basically building a simple CMS and need to handle
Setup: Windows 7, IIS7. I am working on an app that is being viewed
I'm running Vista 64 box, and attempting to setup Joomla using IIS7 (I like
I'm attempting to setup Ruby on Rails on IIS7. I've been reading lots of
I am trying to setup a config file to work with my TFS Fields
I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7
The setup is like this: Col1 Col2 12345 12 12348 14 20145 16 00541
I am trying to setup TurboMail 3 with Pylons 1.0 Followed the docs here
Consider a simple setup: // _conn is the OdbcConnection with a MySQL-Server (MySQL-Connector 3.51)
I have managed to setup a blog on localhost quickly using wordpress. But what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.