anchor.diff:  service_available(ReqData, ConfigProps) ->
       Context = z_context:set(ConfigProps, z_context:new(ReqData)),
       Context1 = z_context:continue_session(Context),
  -    {_Found, _ReqData1, ContextFile} = ensure_file_info(ReqData, Context1),
  -    ContextMime = case z_context:get(mime, ContextFile) of
  -        undefined ->
  -            Path = case z_context:get(path, Context) of
  -                undefined -> mochiweb_util:unquote(wrq:disp_path(ReqData));
  -                ConfiguredPath -> ConfiguredPath
  -            end, 
  -            CT = z_media_identify:guess_mime(Path),
  -            z_context:set(mime, CT, ContextFile);
  -        _Mime -> 
  -            ContextFile
  -    end,
  -    ?WM_REPLY(true, ContextMime).
  +    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) ->
  
positive.code: -record(cache, {path, fullpath, mime, last_modified, body}).
  
  -define(MAX_AGE, 315360000).
  
  init(ConfigProps) ->
      {ok, ConfigProps}.
  
negative.code: encode_data(Data) when is_binary(Data) ->
  	{Data, zlib:gzip(Data)}.
  
  decode_data(gzip, Data) when is_binary(Data) ->
      zlib:gzip(Data);
  decode_data(identity, Data) when is_binary(Data) ->
      Data;
  decode_data(identity, {Data, _Gzip}) ->
  	Data;
  decode_data(gzip, {_Data, Gzip}) ->
  