Skip to content

Commit

Permalink
Disable caching for features/ AJAX responses
Browse files Browse the repository at this point in the history
This fixes an issue where the response for /app/features would
be cached by IE 10, 11 resulting in the groups features not
appearing after signing in to a groups-enabled account
and refreshing the page.
  • Loading branch information
robertknight committed Oct 22, 2015
1 parent bd990f3 commit f24093a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion h/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def flag_enabled(request, name):
@view_config(route_name='features_status',
request_method='GET',
accept='application/json',
renderer='json')
renderer='json',
http_cache=0)
def features_status(request):
"""Report current feature flag values."""
return {k: flag_enabled(request, k) for k in FEATURES.keys()}
Expand Down

0 comments on commit f24093a

Please sign in to comment.