Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ COPY . /opt/profiles

RUN git config --system --add safe.directory '*' # This is also some OKD shit.

ENTRYPOINT ["ddtrace-run", "gunicorn", "profiles:app", "--bind=0.0.0.0:8080", "--access-logfile=-", "--timeout=600"]
ENTRYPOINT ["gunicorn", "profiles:app", "--bind=0.0.0.0:8080", "--access-logfile=-", "--timeout=600"]
7 changes: 1 addition & 6 deletions profiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
from flask import Flask, flash, jsonify, redirect, render_template, request
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata
from flask_sqlalchemy import SQLAlchemy
from flask_uploads import IMAGES, UploadSet, configure_uploads
from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from sqlalchemy.exc import SQLAlchemyError

app = Flask(__name__)

Expand Down Expand Up @@ -64,10 +62,8 @@
ldap_get_group_desc,
ldap_get_groups,
ldap_get_intro_members,
ldap_get_member,
ldap_get_onfloor_members,
ldap_get_year,
ldap_is_active,
ldap_is_rtp,
ldap_search_members,
ldap_update_profile,
Expand All @@ -81,8 +77,7 @@
@app.after_request
def set_cache_headers(response):
if "Cache-Control" not in response.headers:
response.headers["Cache-Control"] = "no-store"
response.headers["Vary"] = "Cookie"
response.headers["Cache-Control"] = "no-store, no-cache, must-revalidate"
return response


Expand Down
Loading