@app.route("<STR_LIT>", methods=("<STR_LIT:GET>",))<EOL>def cache():
is_conditional = request.headers.get("<STR_LIT>") or request.headers.get(<EOL>"<STR_LIT>"<EOL>)<EOL>if is_conditional is None:<EOL><INDENT>response = view_get()<EOL>response.headers["<STR_LIT>"] = http_date()<EOL>response.headers["<STR_LIT>"] = uuid.uuid4().hex<EOL>return response<EOL><DEDENT>else:<EOL><INDENT>return status_code(<NUM_LIT>)<EOL><DEDENT>
Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.
    ---
    tags:
      - Response inspection
    parameters:
      - in: header
        name: If-Modified-Since
      - in: header
        name: If-None-Match
    produces:
      - application/json
    responses:
      200:
        description: Cached response
      304:
        description: Modified