discourse/app/assets/javascripts/pretty-text/addon
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
..
emoji DEV: replaces huge generated emoji list by a simpler regex (#11053) 2021-04-22 08:43:06 +02:00
engines FEATURE: Allow post/topic thumbnails to be prioritized via markdown (#12044) 2021-02-11 15:44:41 +00:00
allow-lister.js FEATURE: Add anchor links to headings (#12379) 2021-03-23 10:45:06 +02:00
censored-words.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
emoji.js DEV: replaces huge generated emoji list by a simpler regex (#11053) 2021-04-22 08:43:06 +02:00
guid.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
inline-oneboxer.js FIX: Cache missing inline oneboxes (#12953) 2021-05-06 19:08:04 +03:00
oneboxer-cache.js
oneboxer.js FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
pretty-text.js Add watched words of type "replace" (#12020) 2021-02-25 14:00:58 +02:00
sanitizer.js FIX: Escape Font Awesome icons (#12421) 2021-03-17 16:11:40 +03:00
upload-short-url.js FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
white-lister.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00