Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9132817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:22:45+00:00 2026-06-17T08:22:45+00:00

According to the Ruby on Rails Guide: Caching , caching is disabled by default

  • 0

According to the Ruby on Rails Guide: Caching, caching is disabled by default in the development and testing environments. If I make a small CSS change, run rails server and access my site at localhost:3000, I can see my change. However, if I access my rails server on my iPhone at 10.0.1.2:3000, the CSS doesn’t update, even Chrome in Incognito Mode. When I try different iPhone that has an empty cache, the change is there.

I found a stack overflow post that described the same problem. Here were the suggested solutions:

  • Remove the public/assets directory. I don’t have one.
  • Add config.serve_static_assets = false to environments/development.rb. It’s already there.
  • Delete /tmp/cache/assets, add config.serve_static_assets = false to environments/development.rb and restart the server. I tried this and it didn’t work.

Here’s my relevant environments/development.rb config:

# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false

# Show full error reports and disable caching
config.consider_all_requests_local       = true
config.action_controller.perform_caching = false
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:22:46+00:00Added an answer on June 17, 2026 at 8:22 am

    I’m pretty sure this is happening because Rails only does fingerprinting in production: http://guides.rubyonrails.org/asset_pipeline.html#in-production

    This means that in development browsers that are more cache-aggressive can run into this issue.

    Try adding this to your development.rb:

    config.assets.digest = true
    

    Or more preferable something conditional for when you’re doing mobile development

    # One of the few exceptions I'd make to a no ENV variables rule 
    # for my rails environment config files
    config.assets.digest = true if ENV["MOBILE_DEBUG"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this Rails guide , if you create a fixture, it becomes available
I'm using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2. application.js
According to the Ruby on Rails 2.3 Release Notes... if your plugin has an
I am new to Ruby, using ruby 1.9.2P180 and Rails 3.1.0.rc2 I have screen.css
According to (somewhat official) this guide , I can make a radio button's label
i am new in RoR. According to the book (ruby on rails 4th edition)
I'm setting up security on my Rails App according to the Ruby on Rails
I'm just starting out with Ruby (and rails). I did the setup according to
According to this post , IDEA uses Osmorc to run OSGi frameworks. It, in
I have a ruby-on-rails application that wishes to utilise the tumblr gem for adding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.