简体   繁体   中英

How to “Remove query string from external resources” in Ruby On Rails?

I am trying to boost speed. I tested on gtmetrix and got the following results:

在此处输入图片说明

There are some plugins for this in Wordpress, but I don't know how to do it in ROR.

Do you know what it means and how I can achieve this in Ruby on Rails?

This is to indicate to Sprockets that the version of the file to retrieve is the non-precompiled version for debugging.

You can get rid of that in your config/environments/development.rb or production.rb or your_environment.rb with:

config.assets.debug = false

This option is true by default in the development environment, so I guess you are testing in that mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM