in reply to Re: Dancer & Plackup - Redirect not refreshing page data
in thread Dancer & Plackup - Redirect not refreshing page data

Done some more tests and it might be nginx causing problems after all. sudo -u nginx /usr/local/bin/plackup -E production -s Starman --workers=2 --port 3000 --preload-app -a bin/app.pl Having starman listen on port 3000, accessing it directly without going through nginx works fine.

Replies are listed 'Best First'.
Re^3: Dancer & Plackup - Redirect not refreshing page data
by Anonymous Monk on Aug 08, 2014 at 01:47 UTC

    So does your nginx config have "cache" anywhere?

    You might add in your dancer app  header('Cache-Control' =>  'no-store, no-cache, must-revalidate');

      The nginx config had no cache-specific setting.
      I've tried setting the header, also setting proxy_no_cache and proxy_cache_bypass in the nginx config with same results.
      I guess it can't only be nginx caching alone or I would have the same behavior with 1 starman worker.
      It's the combination of whatever nginx is doing and multiple starman workers.