mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 21:23:46 +08:00
ecc3c404a0
* 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. |
||
---|---|---|
.. | ||
emoji | ||
engines | ||
allow-lister.js | ||
censored-words.js | ||
emoji.js | ||
guid.js | ||
inline-oneboxer.js | ||
oneboxer-cache.js | ||
oneboxer.js | ||
pretty-text.js | ||
sanitizer.js | ||
upload-short-url.js | ||
white-lister.js |