Saturday, 7 September 2013

Express.js serving source maps and session

Express.js serving source maps and session

I use ExpressJS and connect-mongo as a session storage. When including
JavaScript files (at client side) that has "sourceMappingUrl" property,
browser makes request to download it, and a zombie session in database is
created. Removing "sourceMappingUrl" property fixes the problem, but it's
not convinient and must be done at every JS script update. Is there any
possiblity of serving *.map files through Express's static? Or maybe
another method of fixing that?

No comments:

Post a Comment