anchor.diff:  
   
   encodings_provided(ReqData, Context) ->
  -    Encodings = case z_context:get(mime, Context) of
  -        "image/" ++ _ -> 
  +    Encodings = case z_context:get(chunked, Context) of
  +        true ->
               [{"identity", fun(Data) -> Data end}];
  -        _ -> 
  -            [{"identity", fun(Data) -> decode_data(identity, Data) end},
  -             {"gzip",     fun(Data) -> decode_data(gzip, Data) end}]
  +        _ ->
  +            case z_context:get(mime, Context) of
  +                "image/" ++ _ ->  [{"identity", fun(Data) -> Data end}];
  +                "video/" ++ _ ->  [{"identity", fun(Data) -> Data end}];
  +                "audio/" ++ _ ->  [{"identity", fun(Data) -> Data end}];
  +                "application/x-gzip" ++ _ -> [{"identity", fun(Data) -> Data end}];
  +                "applicationzip" ++ _ -> [{"identity", fun(Data) -> Data end}];
  +                _ -> 
  +                    [{"identity", fun(Data) -> decode_data(identity, Data) end},
  +                     {"gzip",     fun(Data) -> decode_data(gzip, Data) end}]
  +            end
       end,
       {Encodings, ReqData, z_context:set(encode_data, length(Encodings) > 1, Context)}.
   
  
positive.code:         attachment -> wrq:set_resp_header("Content-Disposition", "attachment", ReqData);
          undefined ->  ReqData
      end,
      {Content, Context1} = case z_context:get(body, Context) of
          undefined ->
              {ok, Data} = file:read_file(z_context:get(fullpath, Context)),
              Body = case z_context:get(encode_data, Context, false) of 
                  true -> encode_data(Data);
                  false -> Data
              end,
              {Body, z_context:set(body, Body, Context)};
          Body -> 
              {Body, Context}
      end,
      {Content, RD1, Context1}.
      
      
  finish_request(ReqData, Context) ->
      case z_context:get(is_cached, Context) of
          false ->
  
negative.code: service_available(ReqData, ConfigProps) ->
      Context = z_context:set(ConfigProps, z_context:new(ReqData)),
      Context1 = z_context:continue_session(Context),
      case ensure_file_info(ReqData, Context1) of
           {true, ReqData1, ContextFile} ->
              ContextMime = case z_context:get(mime, ContextFile) of
                  undefined ->
                      Path = case z_context:get(path, Context) of
                          undefined -> mochiweb_util:unquote(wrq:disp_path(ReqData1));
                          ConfiguredPath -> ConfiguredPath
                      end, 
                      CT = z_media_identify:guess_mime(Path),
                      z_context:set(mime, CT, ContextFile);
                  _Mime -> 
                      ContextFile
              end,
              
              case filelib:file_size(z_context:get(fullpath, ContextMime)) of
                  N when N > ?CHUNKED_CONTENT_LENGTH ->
                      ContextChunked = z_context:set([{chunked, true}, {file_size, N}], ContextMime), 
                      ?WM_REPLY(true, ContextChunked);
                  _ ->
                      ?WM_REPLY(true, ContextMime)
              end;
          {false, _ReqData1, ContextFile} ->
              ?WM_REPLY(true, ContextFile)
      end.
  
  
  allowed_methods(ReqData, Context) ->
  