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

  • SEARCH
  • Home
  • 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 6140719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:09:18+00:00 2026-05-23T18:09:18+00:00

Our product includes a Flash application that is loaded by SWFObject. For one customer,

  • 0

Our product includes a Flash application that is loaded by SWFObject. For one customer, when accessing this SWF via HTTPS (but not HTTP), Flash Player will not load it.

I asked the customer to go directly to the URL of the SWF file (rather than the wrapper page):

  • When he does so via HTTP, the SWF loads in the browser.
  • When he does so via HTTPS, IE7 presents him with a ‘save file’ dialog box. This implies that a “Content-Disposition: attachment” header is present in the response. That would also explain why the SWF isn’t loading in Flash Player: as a security measure, it will not play SWFs served with that header.

So, I have a couple of things I’m trying to figure out:

  1. How can I be certain that a Content-Disposition header is being sent by the server (rather than it being a strange artifact of IE7)? The user only has IE7 at his disposal, and cannot use Firefox, Chrome, etc. IE7 doesn’t include the handy ‘Network’ tab that’s present in IE9’s developer tools.

  2. Assuming that the header is present, how is it getting there? They are running Tomcat 6. The SWF is being served by Tomcat’s default servlet. The header appears to be present if the HTTPS connector is used, but not if the HTTP connector is used. The Tomcat configuration is stock except for enabling the HTTPS connector.

On a side note, I don’t trust Flash’s cache clearing. On my machine under IE9, the SWF is often satisfied by cache even after I explicitly clear the browser cache and Flash Player’s stored data: I don’t see any request for it in Fiddler, or in Tomcat’s access logs, but the SWF loads in the browser. Am I missing something here? Could the customer be accessing some bogus cached version of the SWF?

Edit: Apparently the ‘clear cache’ command in the developer tools doesn’t really clear the cache. Using the standard method yielded the expected results.

Edit 2: Tracing within Tomcat indicates that the Content-Disposition header is not set. I don’t know for certain that it’s not being received by the browser, but AFAIK the browser is connecting directly to Tomcat. This seems like an odd browser-side behavior.

  • 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-23T18:09:18+00:00Added an answer on May 23, 2026 at 6:09 pm

    The issue had to do with presence of the following headers in the response:

    Cache-Control: no-cache
    Pragma: no-cache
    

    These were being sent by Tomcat because the page was being protected by a security constraint (configured in conf/web.xml). These headers caused IE7 to act just like a ‘Content-Disposition: attachment‘ header was present.

    My solution was to have the customer add the following configuration to Tomcat’s conf/context.xml:

    <Valve className="org.apache.catalina.authenticator.BasicAuthenticator" securePagesWithPragma="false" />
    

    This replaces the headers with:

    Cache-Control: private
    

    …which should still fulfill the goal of preventing proxies from caching the page, while working around IE’s issues. This was based on the solution found here:

    http://daveharris.wordpress.com/2007/07/09/how-to-configure-cache-control-in-tomcat/

    However, that very-similar solution suppressed the headers entirely. Details of these attributes can be found in Tomcat docs here:

    http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Basic_Authenticator_Valve/Attributes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our product includes some custom hardware, that connects to a PC via USB. We've
We use Make to compile our product, which includes, C, C++, Java and a
Our product contains a task-manager system that allows applications to run code in a
In our product we have a big utilities file that we require (with do
In our product, we have frames that are basically three inheritance levels down from
We are using WiX to create two packages for our product. Package A includes
I'm trying to write a python script that packages our software. This script needs
I need to protect against the users of our product from downloading firmware that
Background Our Eclipse RCP 3.6-based application lets people drag files in for storage/processing. This
Our product has the requirement of exporting its native format (essentially an XML file)

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.