I have very weird issue of 404 page not found. I already have custom 404 page but my app render its own 404 page- I guess for some request my app does not get any hit for example - (1) http://www.mymster.com/neerajsridhar renders default ngix 404 page,but (2) http://www.mymster.com/khanimdads renders custom 404 page
The main issue is not custom 404 page but the error which is: - For point (1) above there is record in my DB ('neerajsridhar' is username in my DB), it works fine on my local machine but not in production mode.
Few inputs which may help in fixing this a) I have used fragment caching for above page b) Above page had 301 permanent c) Environment is - Rails 4, ruby 2, unicorn, nginx and pagespeed.
http://www.mymster.com/stack/once-upon-a-time-in-mexico-12061 - this page do not have any 301 permanent redirect so it should work, but does not. Any help would be appreciated.