i have restful api running on node operates on static files live on server's disk. if run service on node (via command line), able execute crud operations on collection of static files, , receive expected http responses http requests.
however, when take same service , host on iis via iisnode, requests seem return cached versions of files. is, if edit file via rest service, can remote server , confirm update made, if request file via restful api, receive old version.
i've tried following, none of have worked me:
- bouncing iis.
- disabling "cache" , "kernel cache" output caching on web iis web application.
- specifying no-cache in cache-control header.
- removing configuration using iisnode's interceptor.
any ideas on how prevent iisnode (or iis) caching static files tremendously appreciated.
found work-around issue. solution derived reading through this thread. solution consisted of:
- updating iisnode tag watchedfiles attribute value reference static (json) files wanted trigger node process restart. changed
<iisnode watchedfiles="*.js" />
<iisnode watchedfiles="*.js;relative/path/to/static files/*.json" />
- recycle application's app pool. step not documented in thread, , suspect reason others having problems getting solution work.
Comments
Post a Comment