mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +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. |
||
---|---|---|
.. | ||
addon | ||
app | ||
config | ||
engines/discourse-markdown | ||
vendor | ||
ember-cli-build.js | ||
index.js | ||
package.json | ||
yarn.lock |