discourse/app/assets/javascripts
Bianca Nenciu ecc3c404a0
FIX: Cache missing inline oneboxes (#12953)
* FIX: Cache missing inline oneboxes

Some inline oneboxes were not cached when the server did not return an
answer for an URL and the queried URL and the absolute URL were
different.

For example, if user typed www.example.com, the client asked the server
for http://www.example.com and if the server returned an empty response,
then the client would keep requesting an inline onebox everytime the
composer changed.

In other words, the key used for reading (the absolute URL) and the one
used for writing (the URL as typed by the user) were not the same when
the server returned an empty response.

* DEV: Check cache before making request

There is another cache check in PrettyText, but that is not enough if
multiple requests are pending. This problem was made obvious in tests,
but can happen for users with slow connections.
2021-05-06 19:08:04 +03:00
..
admin FIX: Prevent infinite loop when replacing watched words (#12967) 2021-05-06 11:06:25 -04:00
confirm-new-email
discourse FIX: Cache missing inline oneboxes (#12953) 2021-05-06 19:08:04 +03:00
discourse-common FIX: Tests were broken in Firefox (#12456) 2021-03-22 11:35:51 +11:00
discourse-hbr DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
discourse-widget-hbs
docs
ember-addons
locales UX: Make moment.js produce Arabic numerals instead of Hindi numerals in the Arabic locale (#11788) 2021-01-21 22:11:51 +03:00
pretty-text FIX: Cache missing inline oneboxes (#12953) 2021-05-06 19:08:04 +03:00
select-kit FIX: Base topic details message on current category and tag tracking state (#12937) 2021-05-06 09:14:07 +10:00
truth-helpers DEV: implements some of ember-truth-helpers (#12667) 2021-04-12 11:40:00 +02:00
wizard FIX: Wizard locale change wasn't applying to some elements (#12915) 2021-04-30 12:14:16 -04:00
activate-account.js
admin.js.erb
app-boot.js
application.js DEV: implements some of ember-truth-helpers (#12667) 2021-04-12 11:40:00 +02:00
auto-redirect.js
browser-detect.js
browser-update.js FIX: browser-update should work with old browsers (#12436) 2021-03-18 19:09:01 +02:00
discourse-loader.js DEV: Add more @ember modules for plugins compatibility with Ember CLI (#11972) 2021-02-04 16:26:06 +03:00
discourse-shims.js Sync up master with Ember CLI branch where possible (#11707) 2021-01-14 12:52:51 -05:00
embed-application.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
ember_include.js.erb
ember_jquery.js
env.js
google-tag-manager.js FEATURE: Implement nonces for Google Tag Manager integration (#12531) 2021-03-26 11:19:31 -04:00
google-universal-analytics-v3.js
google-universal-analytics-v4.js
handlebars-shim.js FIX: It seems sometimes shims are evaluated by older JS engines (#11813) 2021-01-22 10:41:01 -05:00
main_include_admin.js
markdown-it-bundle.js
onpopstate-handler.js
package.json DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
polyfills.js
pretty-text-bundle.js
print-page.js
service-worker.js.erb DEV: debug: false for service workers to stop log spam via workbox (#12093) 2021-02-16 14:01:19 +10:00
set-prototype-polyfill.js
start-discourse.js
template_include.js
test-shims.js DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
vendor.js DEV: Drop old IE11 intersection-observer references (#12942) 2021-05-04 17:54:54 -06:00
widget-runtime.js
wizard-application.js DEV: implements some of ember-truth-helpers (#12667) 2021-04-12 11:40:00 +02:00
wizard-shims.js
wizard-start.js
wizard-vendor.js
yarn.lock DEV: Support Node 15 with Ember CLI (#12679) 2021-04-14 10:16:39 -04:00