zulip/zerver/tests
Tim Abbott c869a3bf82 upload: Fix browser caching of uploads with local uploads backend.
Apparently, our change in b8a1050fc4 to
stop caching responses on API endpoints accidentally ended up
affecting uploaded files as well.

Fix this by explicitly setting a Cache-Control header in our Sendfile
responses, as well as changing our outer API caching code to only set
the never cache headers if the view function didn't explicitly specify
them itself.

This is not directly related to #13088, as that is a similar issue
with the S3 backend.

Thanks to Gert Burger for the report.
2019-10-01 15:15:17 -07:00
..
fixtures mattermost: Fix mirror dummy fixture data. 2019-09-25 19:03:43 +05:30
images
__init__.py
test_alert_words.py
test_archive.py
test_attachments.py
test_audit_log.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_auth_backends.py do_update_user_custom_profile_data: Rename to ..._if_changed. 2019-10-01 13:52:43 -07:00
test_bots.py bots: Fix bot email addresses with EMAIL_ADDRESS_VISIBILITY_ADMINS. 2019-09-23 15:53:53 -07:00
test_bugdown.py bugdown: Remove print statement from fixtures test. 2019-09-13 11:54:14 -07:00
test_cache.py generic_bulk_cached_fetch: Only call query_function if necessary. 2019-08-15 17:14:02 -07:00
test_camo.py
test_compatibility.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_create_video_call.py
test_custom_profile_data.py do_update_user_custom_profile_data: Rename to ..._if_changed. 2019-10-01 13:52:43 -07:00
test_decorators.py zerver: Accept HEAD requests wherever GET requests are accepted. 2019-08-12 16:47:41 -07:00
test_digest.py emails: Extract get_narrow_url into a function. 2019-06-28 11:38:17 -07:00
test_docs.py restore-backup, test_docs: Import settings from django.conf. 2019-08-28 15:33:16 -07:00
test_email_change.py urls: Tighten many unintentionally broad URL patterns. 2019-08-26 20:51:49 -07:00
test_email_log.py
test_email_mirror.py email_mirror: Ignore missed message email if the user isn't active. 2019-09-20 17:58:10 -07:00
test_email_notifications.py emoji: Finish removing leftover code from banned Emoji sets. 2019-09-19 12:08:52 -07:00
test_embedded_bot_system.py
test_event_queue.py messages: Add email/push notifications for wildcard mentions. 2019-08-26 14:39:53 -07:00
test_events.py do_update_user_custom_profile_data: Rename to ..._if_changed. 2019-10-01 13:52:43 -07:00
test_external.py
test_feedback.py
test_gitter_importer.py
test_hipchat_importer.py
test_home.py upload: Fix browser caching of uploads with local uploads backend. 2019-10-01 15:15:17 -07:00
test_hotspots.py
test_i18n.py test_i18n: Clean up type ignores. 2019-08-09 17:42:33 -07:00
test_import_export.py tests: Adjust to new changes in populate_db. 2019-07-31 16:01:37 -07:00
test_integrations_dev_panel.py webhooks: Replace headers parsing logic with a common source. 2019-06-24 13:23:21 -07:00
test_legacy_subject.py
test_link_embed.py url preview: Replace YouTube URLs with their titles. 2019-07-12 19:14:19 -07:00
test_logging_handlers.py errors: Fix infinite recursion during memcached outages. 2019-09-03 11:44:39 -07:00
test_management_commands.py test_management_commands: Use subTest with help tests. 2019-09-13 11:54:14 -07:00
test_mattermost_importer.py mattermost: Read fixures inside test cases instead of setUp. 2019-09-25 20:07:00 +05:30
test_message_edit_notifications.py messages: Add email/push notifications for wildcard mentions. 2019-08-26 14:39:53 -07:00
test_messages.py display_recipient: Eliminate raw_display_recipient from message dicts. 2019-08-20 12:22:52 -07:00
test_middleware.py
test_migrations.py
test_muting.py
test_narrow.py upload: Fix browser caching of uploads with local uploads backend. 2019-10-01 15:15:17 -07:00
test_new_users.py test_new_users: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:22 -07:00
test_onboarding.py
test_openapi.py docs: Add OpenAPI data for `/messages/{message_id}/reactions`. 2019-09-24 15:57:51 -07:00
test_outgoing_webhook_interfaces.py test_outgoing_webhook_interfaces: Clean up type ignores. 2019-08-09 17:42:33 -07:00
test_outgoing_webhook_system.py
test_populate_db.py populate_db: Refactor message.pub_date generating code. 2019-07-22 15:55:28 -07:00
test_presence.py test_presence: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07:00
test_push_notifications.py test_push_notifications: Remove fixtures print statement. 2019-09-13 11:54:14 -07:00
test_queue.py
test_queue_worker.py user_activity: Skip an unnecessary database query for new entries. 2019-09-21 11:49:43 -07:00
test_reactions.py test_retention: Check that Reactions get correctly deleted. 2019-05-30 11:33:41 -07:00
test_realm.py models: Extract get_human_admin_users function. 2019-06-20 14:32:30 -07:00
test_realm_domains.py
test_realm_emoji.py
test_realm_export.py export: Fix broken URLs in UI with S3 backend. 2019-09-24 13:56:49 -07:00
test_realm_filters.py
test_report.py
test_retention.py test_retention: Prepare for moving system bots to zulipinternal. 2019-07-20 15:08:08 -07:00
test_service_bot_system.py
test_sessions.py
test_settings.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_signup.py onboarding: Mark the most recent 20 messages as unread. 2019-08-26 13:51:52 -07:00
test_slack_importer.py slack: Rename added_recipient to slack_recipient_name_to_zulip_recipient_id. 2019-08-26 14:10:19 -07:00
test_slack_message_conversion.py test_slack_message_conversion: Use subTest for fixtures test. 2019-09-13 11:54:14 -07:00
test_soft_deactivation.py
test_subdomains.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_submessage.py
test_subs.py display_recipient: Eliminate raw_display_recipient from message dicts. 2019-08-20 12:22:52 -07:00
test_templates.py test_templates: Add a verbose error messages for rendering failures. 2019-08-12 16:24:08 -07:00
test_thumbnail.py
test_timestamp.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_tornado.py events: Check last_event_id for validity, take 2. 2019-08-05 17:18:49 -07:00
test_transfer.py
test_tutorial.py test_presence: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07:00
test_type_debug.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_typing.py test_typing: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07:00
test_unread.py
test_upload.py upload: Fix browser caching of uploads with local uploads backend. 2019-10-01 15:15:17 -07:00
test_urls.py urls: Tighten many unintentionally broad URL patterns. 2019-08-26 20:51:49 -07:00
test_user_groups.py test_user_groups: Eliminate hard-coded user ids. 2019-08-21 21:28:09 -07:00
test_user_status.py
test_users.py emoji: Finish removing leftover code from banned Emoji sets. 2019-09-19 12:08:52 -07:00
test_webhooks_common.py webhooks: Eliminate the usage of a headers.py file. 2019-06-26 10:35:14 -07:00
test_widgets.py
test_zcommand.py
test_zephyr.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00