You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A first time submission to the source interface does not produce a flashed message in the staging environment using Tor Browser.
Steps to reproduce
Provision staging VMs
Load the source interface in Tor Browser.
Generate a new codename.
Submit a test message "blah".
What should happen
A flashed message like this one should appear:
What actually happens
No flashed message is shown. If you refresh the page, the flashed message will then appear. Subsequent submissions will produce the flashed message. Also note that this problem does not appear in Chrome.
The text was updated successfully, but these errors were encountered:
I think this is being caused by recent-ish changes to the cache headers (e.g. #1185). If you look at the Network panel while reproducing the issue, notice how the POST gets a 302 to /lookup, which then uses a cached copy.
HTTP caching is a somewhat complex topic. Here's a good reference.
To fix this bug, we need to stop telling the browser to cache HTML responses for logged-in users; however, we should continue to cache images/stylesheets/scripts to maintain the improved user experience from #1185 (see also #1152 for background on the motivation for adding HTTP caching to the Source Interface). We may be able to do this entirely in the Apache configuration, or it may make more sense to move the cache header logic into Flask (similar to this Stack Overflow user's approach).
Discussed this in a meeting today. We all agreed that the Apache configuration needs to be reviewed and annotated, because:
Some if its directives may be redundant/pointless
There are few comments, which makes the configuration hard to audit.
A full rework should probably wait until after 0.4, since we're trying to keep changes minimal for 0.4 to minimize potential regressions. I'll file a new issue for reviewing and annotating the Apache configuration.
Description
A first time submission to the source interface does not produce a flashed message in the staging environment using Tor Browser.
Steps to reproduce
What should happen
A flashed message like this one should appear:
What actually happens
No flashed message is shown. If you refresh the page, the flashed message will then appear. Subsequent submissions will produce the flashed message. Also note that this problem does not appear in Chrome.
The text was updated successfully, but these errors were encountered: