express-static-gzip icon indicating copy to clipboard operation
express-static-gzip copied to clipboard

Add option to prevent throw error when not found matching file

Open dungtran5 opened this issue 3 years ago • 1 comments

Hi author,

Recently I used this middleware, I had a issue that when a request for a sourcemap file not found in server (because I deleted it manually)

error image!

As I read in nodejs document here https://nodejs.org/api/fs.html#fs_fs_statsync_path_options We could avoid this throw by skip it (as my case)

So I hope this PR would add a option for anyone have the same issue with me.

dungtran5 avatar Sep 19 '21 03:09 dungtran5

I'll add some test for this

dungtran5 avatar Sep 20 '21 09:09 dungtran5

Close as I ended up using other libraries. Thanks author

dungtran5 avatar Mar 20 '23 10:03 dungtran5