You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The situation is that you start the server and an asset you have specified in the html/css does not exist on the filesystem. What should happen in this case? Should the html tag still be rendered and in that case what should the ?cache parameter be set to?
If you get rid of the fs.exists check it will throw an exception at server start which might be a better way of handling the error?
In function
renderTag()the cache timestamp is determined, but only set if the file exists. As you can see, this will never work.The situation is that you start the server and an asset you have specified in the html/css does not exist on the filesystem. What should happen in this case? Should the html tag still be rendered and in that case what should the
?cacheparameter be set to?If you get rid of the
fs.existscheck it will throw an exception at server start which might be a better way of handling the error?