anchor.diff:  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}) ->
  
positive.code: 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).
  
  
  allowed_methods(ReqData, Context) ->
  
negative.code: -record(cache, {path, fullpath, mime, last_modified, body}).
  
  -define(MAX_AGE, 315360000).
  -define(CHUNKED_CONTENT_LENGTH, 1048576).
  -define(CHUNK_LENGTH, 65536).
  
  init(ConfigProps) ->
      {ok, ConfigProps}.
  