10 Replies Latest reply on Feb 3, 2010 5:36 PM by websmyth

    How Do I Specify No Cache With HTTPMultiservice?

    websmyth

      Exactly how would I specify no caching of an SWF file using HTTPMultiservice? For example, you can do it using URLRequest with the code below. Is there a way to do it with HTTPMultiservice:

       

      var loader:URLLoader = new URLLoader();
      var request:URLRequest = new URLRequest(whatever url);
      request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
      request.requestHeaders.push(new URLRequestHeader("Expires", "Thu, 01 Jan 1970 00:00:00 GMT, -1"));
      request.requestHeaders.push(new URLRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate"));
      loader.load(request);