• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Solution for MS IE 6.0 https download bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solution for MS IE 6.0 https download bug


  • Subject: Solution for MS IE 6.0 https download bug
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 7 Mar 2006 11:05:19 -0500

FYI,

MS IE 6.0 will have trouble on some (many?) PC's when returning a https download response. Modifying the cache and pragma headers in appendToResponse of the "download" page does not work since I guess WO tacks on the expiration, cache and pragma headers after the page appenToResponse. I implemented the Microsoft workaround by over-riding dispatchRequest in Application and implementing the header manipulation for content-type = application/octet-stream responses.

I just wanted to share this with anyone who has been encountering this issue. More details are show in the MS kb articles referenced in the code snippet. If the more wiser among the community has a better practice implementation of this workaround (such as putting this in application appendToResponse instead of dispatchRequest), then let me know.

Regards, Kieran

    public WOResponse dispatchRequest(WORequest request) {
        WOResponse aResponse = super.dispatchRequest( request );

// A workaround to fix https downloads bug in IE
// See Microsoft knowledge base articles 812935, 323308
// http://support.microsoft.com/kb/812935/en-us
// http://support.microsoft.com/kb/323308/en-us
// Remove the cache-control: no-store and cache-control: no-cache headers


        String contentType = aResponse.headerForKey( "content-type" );

if ( contentType != null && contentType.equals( "application/octet-stream" ) ) {

            // Modify the headers
            aResponse.removeHeadersForKey( "cache-control" );
            aResponse.removeHeadersForKey( "pragma" );

            // Set age to a long time allowing caching
            aResponse.setHeader("max-age=604800","cache-control");

        }

        return aResponse;
    }

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How to focus on a text field on loading?
  • Next by Date: Graphs, Charts, Filemanager, calendar howto?
  • Previous by thread: Re: appserver -> root after 10.3.9 upgrade
  • Next by thread: Graphs, Charts, Filemanager, calendar howto?
  • Index(es):
    • Date
    • Thread