Skip to content

Adds the xhrCache option

Latest
Compare
Choose a tag to compare
@matthewp matthewp released this 29 Oct 19:48
· 10 commits to master since this release

This adds xhrCache: false as an option.

Specifies if the XHR cache should be inlined into the page. The XHR cache is used to prevent duplicate requests from occuring in the client when hydrating from server-rendering HTML. In some cases you might not use XHR in the client and therefore want to prevent the script from being included.

const ssr = require('done-ssr');

const render = ssr({}, {
  xhrCache: false
});