react-universally icon indicating copy to clipboard operation
react-universally copied to clipboard

Vendor DLL script tag

Open mb8z opened this issue 7 years ago • 2 comments

Hey guys!

I have been using the dll webpack plugin without even noticing it running thanks to your boilerplate. That's awesome! 🎉

Recently I added more packages to the devVendorDLL.include as my builds were getting slower and slower - the app is getting bigger and bigger. My __dev_vendor_dll__.js file is now over 5MB and I've noticed it is not being cached by the browser because of the ?t=${Date.now()} added in the ServerHTML.js file.

My question is - is this a desired behavior? With this in place my browser fetches the file every time I reload the page, and that's a pretty big file for a browser.

mb8z avatar Jul 11 '18 14:07 mb8z

@Ancinek What solution did you end up with on this one?

oyeanuj avatar Jul 28 '18 19:07 oyeanuj

@oyeanuj I’ve just remove the Date.now method from the script tag. I have not noticed any unwanted behavior with this change :)

mb8z avatar Jul 28 '18 20:07 mb8z