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

  • Home
  • SEARCH
  • 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 455183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:20:42+00:00 2026-05-12T22:20:42+00:00

We are using gravtars for a site currently being developed in rails 2.3.4 and

  • 0

We are using gravtars for a site currently being developed in rails 2.3.4 and i am finding that the rails side tends to cache the images even after there is a change at the gravtar side. I know with javascript you can prevent caching when using thejavacript_include_tag :cache => false method, however, is there a way to prevent the cache when using the image_tag helper?

I have read around a bit and it would appear that it used to append the timestamp information after the url with some paramaters (i.e. src="image.png?123123"), but it doesn’t seem to do it anymore.

Any ideas, or should i stop using those damn helpful helpers as a crutch and for once in my rails developing life write some actual code?

  • 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-05-12T22:20:42+00:00Added an answer on May 12, 2026 at 10:20 pm

    One option I can think of to do this would be to write a little helper that would append a “?YYYYMMDDHH” to the end of Gravatar URL’s. You could generate the URL’s to include year, month, day and hour. This way the browser caching should only be stale for an hour maximum.

    This will increase perceived load time for your users as images would be browser cached less frequently. You could adjust any number of ways: YYYYMMDD, YYYYMMDDHHm, etc. You’ll have to weigh the importance of having up-to-the-minute Gravatar images versus page rendering speeds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Using Rails 3.2.0 with haml, sass and coffeescript: Basically I am trying to disable
Using Yii, I want to delete all the rows that are not from today.
Using EF Code First I have an model object that has multiple properties that
Using a JEditorPane, is there any way to tell if the caret is currently
Using report builder 3.0, I have a report that queries a cube. How do
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
Using Google Maps InfoBox - http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html Currently the map will scroll - pan control

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.