Slow HTTP Load with the Assets Folder of the Project - Ruby on Rails, Webrick, Localhost, Firefox

217 views Asked by At

The HTTP Protocol:

Notice: The cache has been cleared before recording the HTTP protocol.

This is a HTTP protocol of the HTTP Watch Addon for Firefox: http://www.mediafire.com/view/?wccimru3qdu19s2#

The HTTP load is around 5 seconds.

The status code is 200 OK.

The Problem:

To load the assets folder into the cache Firefox does not do the GET request just on the first time of rendering the web application - it also does it repeatedly on every page load, so that every page rendering becomes too slow.

The Questions:

  1. Is there something specific in Webrick, Ruby, or Rails, which may cause Firefox to do the repeated GET request?

  2. The HTTP load takes around 5 seconds on the first time rendering of the web application, so the assets folder can be loaded in the cache of Firefox - are there procedures to increase the load speed?

The Addendum:

Installing the rails-dev-tweaks has increased the speed time from around 5 seconds to around 2.5 seconds. Where, by now, the repeated GET request is still a persisting problem, which means that around 2.5 seconds for each page load is still too slow.

1

There are 1 answers

8
Rahul garg On

Add

rails-dev-tweaks

https://github.com/wavii/rails-dev-tweaks

to your Gemfile for 'development' environment...

Currently the issue should only be in dev env., in production it should be working fine already