Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin;
- do $$
- declare
- res_headers text;
- begin
- res_headers := '[{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}]';
- SET LOCAL "response.headers" = res_headers;
- end; $$;
- show "response.headers";
- rollback;
- -- Result:
- ┌──────────────────┐
- │ response.headers │
- ├──────────────────┤
- │ res_headers │
- └──────────────────┘
- begin;
- SET LOCAL "response.headers" = '[{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}]';
- show "response.headers";
- rollback;
- -- Result:
- ┌────────────────────────────────────────────────────────────────────┐
- │ response.headers │
- ├────────────────────────────────────────────────────────────────────┤
- │ [{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}] │
- └────────────────────────────────────────────────────────────────────┘
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement