def main_css(): from sagenb.notebook.css import css data,datahash = css() if request.environ.get('HTTP_IF_NONE_MATCH', None) == datahash: response = make_response('',304) else: response = make_response(data) response.headers['Content-Type'] = 'text/css; charset=utf-8' response.headers['Etag']=datahash return response
def main_css(): from sagenb.notebook.css import css data, datahash = css() if request.environ.get("HTTP_IF_NONE_MATCH", None) == datahash: response = make_response("", 304) else: response = make_response(data) response.headers["Content-Type"] = "text/css; charset=utf-8" response.headers["Etag"] = datahash return response
def main_css(): from sagenb.notebook.css import css response = make_response(css()) response.headers['Content-Type'] = 'text/css; charset=utf-8' return response