-
Notifications
You must be signed in to change notification settings - Fork 7
Enabel serve-static options #9
base: master
Are you sure you want to change the base?
Conversation
…rol-Header of static files
…ic-max-age Include serve-static module to make it possible to set the Cache-Cont…
…ic-max-age Update package.json
|
What will this do if no configuration is passed in? How does it interact with the existing express.static call? And does it make sense to configure appy for better production static file http://apostrophenow.org/howtos/production.html On Tue, Jan 26, 2016 at 7:01 AM, Thomas König [email protected]
*THOMAS BOUTELL, *DEV & OPS |
|
Hey Tom! If one wouldn't pass the You are right, serving static files with nginx would be a way much better solution, but unfortunately we are not able to this in our case. So the only way to cache these files is to do this over the CDN, and therefore it is necessary to set the Cache-Control-Header to |
|
For bc reasons I'm leery of switching to a different module to provide So a more minimal and safe change would be to add a staticOptions property On Wed, Feb 10, 2016 at 2:59 AM, Thomas König [email protected]
*THOMAS BOUTELL, *DEV & OPS |
|
Hey Tom, you're right. That would be easier. Although we need to pass an other object to the |
Enable the possibility to set
max-agefor static files