canvas-lms/spec
Xander Moffatt 735cbddf49 cache LTI postMessage forwarding frame
why:
* this gets loaded on every page and the HTML
isn't currently cached at all
* cache for a day to start

closes INTEROP-8276
flag=lti_platform_storage

test plan:
* enable the lti_platform_storage flag
* open the browser network tools and filter by
post_message_forwarding
* load and reload a canvas page a couple of times
* this page should be cached after the first time
* check the Cache-Control response header
* it should have 86400 in it
* bonus:
  * open a rails console and run
  `Setting.set('post_message_forwarding_ttl', 2.days.seconds.to_s)`
  * restart your canvas
  * disable the network cache briefly to request the page again
  * enable cache again
  * check the Cache-Control header on the page
  * it should have 172800 in it now

Change-Id: I6f9387a92ba56a1825284abb0ead3369e4c83e90
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330965
Reviewed-by: Evan Battaglia <ebattaglia@instructure.com>
QA-Review: Evan Battaglia <ebattaglia@instructure.com>
Product-Review: Xander Moffatt <xmoffatt@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-10-23 22:08:21 +00:00
..
apis Return "rejected" users in rollups api 2023-10-23 20:31:54 +00:00
coffeescripts hide anonymous grading for new quizzes unless ff on 2023-10-17 14:01:27 +00:00
contracts Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
controllers cache LTI postMessage forwarding frame 2023-10-23 22:08:21 +00:00
factories include context module overrides in AssignmentOverrideApplicator 2023-09-29 12:54:04 +00:00
factory_bot Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
fixtures Fix import into module functionality 2023-06-15 14:58:19 +00:00
formatters update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
gem_integration/canvas_connect
graphql handle nil participants for anonymous discussions 2023-10-19 19:59:51 +00:00
helpers display minus instead of en-dash 2023-10-09 16:24:10 +00:00
initializers bundle update switchman 2023-10-12 20:31:19 +00:00
integration enable granular permissions features in all envs 2023-09-25 23:17:32 +00:00
javascripts fix speed grader not showing updated status pill 2023-10-16 20:29:07 +00:00
lib Include module overrides in EffectiveDueDates 2023-10-20 18:42:10 +00:00
manual_seeding Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
messages update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
migrations use helper methods for check constraints on old migrations 2023-09-07 23:01:00 +00:00
models aggregate checkpoint submissions' grade attrs 2023-10-23 16:11:29 +00:00
observers Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
presenters display minus instead of en-dash 2023-10-09 16:24:10 +00:00
requests Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
schemas/lti rubocop: prep for updating rubocop-rspec 2023-04-12 19:30:10 +00:00
selenium spec: verify student visibility of modules 2023-10-23 18:24:31 +00:00
serializers bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
services aggregate checkpoint submissions' grade attrs 2023-10-23 16:11:29 +00:00
shared_examples bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
support skip crystalball on package.json or yarn.lock changes 2023-10-23 15:27:26 +00:00
views replace module student peer review with react component 2023-10-18 19:29:41 +00:00
.eslintrc
.rspec_parallel
ams_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
broadcast_integration.rb
canvas_simplecov.rb
cassandra_spec_helper.rb Remove auditor cassandra support 2023-04-03 15:40:22 +00:00
conditional_release_spec_helper.rb Move Mastery Path to an account/course setting 2022-04-13 22:26:57 +00:00
coverage_tool.rb
factories.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
factory_bot_spec_helper.rb
feature_flag_helper.rb
file_upload_helper.rb
force_failure_spec.rb
import_helper.rb rubocop: Style/FileRead, Style/FileWrite 2023-04-10 20:57:32 +00:00
jspec.sh Improve Karma test loading 2022-10-12 18:23:35 +00:00
lti2_course_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti2_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_1_3_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_1_3_tool_configuration_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
outcome_alignments_spec_helper.rb Update GraphQL Alignment loader to return aligned items 2023-05-11 15:57:34 +00:00
plagiarism_platform_spec_helper.rb bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
quiz_spec_helper.rb
rcov.opts
rspec_mock_extensions.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
sharding_spec_helper.rb
simple_cov_result_merger.rb
spec.opts
spec_helper.rb bundle update redis 2023-09-28 15:49:47 +00:00