MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_no_cache_header

Function get_no_cache_header

web/pgadmin/utils/ajax.py:52–63  ·  view source on GitHub ↗

Prevent browser from caching data every time an http request is made. Returns: headers

()

Source from the content-addressed store, hash-verified

50
51
52def get_no_cache_header():
53 """
54 Prevent browser from caching data every time an
55 http request is made.
56 Returns: headers
57 """
58 headers = {}
59 # HTTP 1.1.
60 headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
61 headers["Pragma"] = "no-cache" # HTTP 1.0.
62 headers["Expires"] = "0" # Proxies.
63 return headers
64
65
66def make_json_response(

Callers 2

make_json_responseFunction · 0.85
make_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected