src/dirbs/api/__init__.py
def add_no_cache(response: callable) -> callable:
    """
    Makes sure no API responses are cached by setting headers on the response.

    Arguments:
        response: http response before dispatch
    Returns:
        response: modified http response with added headers
    """
    response.cache_control.no_cache = True
    response.cache_control.no_store = True
    response.cache_control.must_revalidate = True
    response.cache_control.max_age = 0
    response.headers['Pragma'] = 'no-cache'
    response.expires = 0
    return response

    Makes sure no API responses are cached by setting headers on the response.

    Arguments:
        response: http response before dispatch
    Returns:
        response: modified http response with added headers
    
Makes sure no API responses are cached by setting headers on the response.
Makes sure no API responses are cached by setting headers on the response .
def add_no_cache(response: callable) -> callable:
    response.cache_control.no_cache = True
    response.cache_control.no_store = True
    response.cache_control.must_revalidate = True
    response.cache_control.max_age = 0
    response.headers['Pragma'] = 'no-cache'
    response.expires = 0
    return response
def add_no_cache ( response : callable ) -> callable : response . cache_control . no_cache = True response . cache_control . no_store = True response . cache_control . must_revalidate = True response . cache_control . max_age = 0 response . headers [ 'Pragma' ] = 'no-cache' response . expires = 0 return response
Makes sure no API responses are cached by setting headers on the response.
Makes sure no API responses are cached by setting headers on the response .
"""
    Makes sure no API responses are cached by setting headers on the response.

    Arguments:
        response: http response before dispatch
    Returns:
        response: modified http response with added headers
    """
modified http response with added headers
modified http response with added headers
response
response
callable
http response before dispatch
http response before dispatch