[Rails] Re: Offline rails application

2016-07-31 Thread Neo Elit
I think you could look at patterns of a progressive web application. https://medium.com/@AdityaPunjani/building-flipkart-lite-a-progressive-web-app-2c211e641883#.4zqhjwuvx flipkart mobile web application makes use of this. That's a life changing pattern for web apps but I

[Rails] Re: Rails 4.2.6 fresh_when not functioning properly in passenger-standalone production

2016-05-18 Thread Neo Elit
I got the issue. However the issue had nothing to do with passenger or rails. My ISP is using some proxy and was removing the If-None-Match headers. Tried another service and is working normally. On Tuesday, May 17, 2016 at 11:27:22 AM UTC+5:30, Neo Elit wrote: > > I'm trying

[Rails] Rails 4.2.6 fresh_when not functioning properly in passenger-standalone production

2016-05-16 Thread Neo Elit
I'm trying to provide etag and last-modified headers for static page. Locally it works fine and browser gets a 304, however on server with passenger standalone it's not providing a 304. https://gist.github.com/NeoElit/dd8d9f22142db12cee077723b7cd8bf5 >From http://stackoverflow.com/questions/1869

[Rails] Re: Routing error

2016-05-12 Thread Neo Elit
Your PapTagsController should be inside monitor module. I don't how it worked in local server without that. file: /app/controllers/monitor/pap_tags_controller.rb module Monitor class PapTagsController < ApplicationController ... end end On Thursday, May 12, 2016 at 6:19:23 PM UTC+5:30

[Rails] AWS Elastic Beanstalk - Passenger Standalone - Rails not setting asset cache headers

2016-05-12 Thread Neo Elit
I have a rails application running on AWS EB with passenger standalone. However the asset served doesn't seem to set cache headers. What is the preferred way to do this? I tried running standalone in a single instance and it's properly setting cache headers. However that's not the case in aws ela