1-module(cache_appmod_test).
2-export([out/1]).
3
4-include("yaws_api.hrl").
5
6out(Arg) ->
7    {abs_path, Path} = (Arg#arg.req)#http_request.path,
8    Opts0 = case yaws_api:queryvar(Arg, "no-cache") of
9               {ok, "1"} -> [{disable_cache, true}];
10               _         -> []
11            end,
12    Opts1 = [{header, {"X-Appmod", "cache_appmod_test"}}|Opts0],
13    {page, {Opts1, Path}}.
14
15