I did it.But didn't work it out. I'll try another time. Thanks.
On Wed, Apr 18, 2012 at 7:25 AM, tjholowaychuk <[email protected]>wrote: > app.use(express.static(path, { maxAge: ms })) > > > On Tuesday, 17 April 2012 17:22:19 UTC-7, Arunoda Susiripala wrote: >> >> Hi, >> >> I've fixed this with a middleware. >> It works - >> https://gist.github.com/**1a97ad8cb50aec07acbe<https://gist.github.com/1a97ad8cb50aec07acbe> >> >> But not sure it is good or bad? >> >> On Wed, Apr 18, 2012 at 4:44 AM, Arunoda Susiripala < >> [email protected]> wrote: >> >>> Hi, >>> >>> I want to cache static files as many as we can. But it does not work >>> with express. >>> It does not use 'Cache Control' header. >>> >>> and always it is *max-age=0* >>> * >>> * >>> I've tried using several middles ware including static. But didn't work >>> it out. >>> I'm runing node with NODE_ENV too.. >>> >>> >>> Here is the express setup. >>> https://gist.github.com/**653e5ae16d2f6a2e7065<https://gist.github.com/653e5ae16d2f6a2e7065> >>> >>> -- >>> Arunoda Susiripala >>> >>> @arunoda <http://twitter.com/arunoda> >>> <http://gplus.to/arunoda>https://github.com/arunoda >>> http://www.linkedin.com/in/**arunoda<http://www.linkedin.com/in/arunoda> >>> >>> >> >> >> -- >> Arunoda Susiripala >> >> @arunoda <http://twitter.com/arunoda> >> <http://gplus.to/arunoda>https://github.com/arunoda >> http://www.linkedin.com/in/**arunoda <http://www.linkedin.com/in/arunoda> >> >> -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Arunoda Susiripala @arunoda <http://twitter.com/arunoda> <http://gplus.to/arunoda>https://github.com/arunoda http://www.linkedin.com/in/arunoda -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
