discourse/app
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
..
assets FIX: Cache missing inline oneboxes (#12953) 2021-05-06 19:08:04 +03:00
controllers FEATURE: Allow sending a message with invite (#12892) 2021-05-06 10:16:42 +03:00
helpers FEATURE: Allow theme tests to be run in production (take 2) (#12845) 2021-04-28 23:12:08 +03:00
jobs FEATURE: add support for like webhooks (#12917) 2021-04-30 17:08:38 -07:00
mailers FEATURE: Auto-activate users invited by email (#12675) 2021-04-14 12:15:56 +03:00
models FIX: Base topic details message on current category and tag tracking state (#12937) 2021-05-06 09:14:07 +10:00
serializers FIX: Base topic details message on current category and tag tracking state (#12937) 2021-05-06 09:14:07 +10:00
services FIX: Link notification to first unread post (#12868) 2021-05-04 13:03:00 +10:00
views DEV: Arrange theme QUnit dependencies in the right order (#12907) 2021-04-30 13:28:33 +03:00