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 8617379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:50:33+00:00 2026-06-12T05:50:33+00:00

I have a web application that uses the same Twitter authentication code as the

  • 0

I have a web application that uses the same Twitter authentication code as the Sinatra app imonaplane.

The homepage is either showing “Sign in with Twitter” or personalized content. After signing in, you’re redirected (via HTTP 302) to the homepage:

get '/session_auth' do
  if params[:oauth_verifier]
    access_token = twitter_client.authorize(
      session[:request_token], session[:request_token_secret], oauth_verifier: params[:oauth_verifier])
    if twitter_client.authorized?
      user = db.load(User.to_id(twitter_client.info['screen_name'])) || User.new(login: twitter_client.info['screen_name'], twitter_access_token: access_token.token,
        twitter_secret_token: access_token.secret)
      db.save! user
      session[:user_id] = user.id
    end
  end
  redirect '/'
end

This works fine in Firefox 14.0.1 and Safari 5.1.7 and the iOS simulator.

However, it seems as if Mobile Safari on iOS 5.1.1 is caching the generalized homepage. This gives the impression that you’re not logged in because it’s still showing “Sign in with Twitter.” Reload will show the personalized content.

This is running on Heroku, Cedar stack. No HTTP cache headers are used.

What’s the problem here? Should I tell the browser explicitly to not cache the homepage, possibly with a Cache-Control: private header?

  • 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-12T05:50:35+00:00Added an answer on June 12, 2026 at 5:50 am

    Different browsers acknowledge different values in the Cache-Control Header.

    As far as I know (though I can’t cite any great source right now) to make sure no caching is performed in any browser the Cache-Control Header can be set to "max-age=0, private, no-store, no-cache, must-revalidate".

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

Sidebar

Related Questions

I have written a web application that uses Microsoft's built-in membership authentication that is
I have a REST-style web application that uses EF code first. I'm using AutoMapper
I have a web application that uses fixed css width. (1280px). With jquery, I
I have a web application that uses TONS of javascript, and as usual, there
I have a web application that uses AzMan authorization to grant different functionality to
I have a web application that uses two databases. DB1 Users perform their CRUD
I have a web application that uses the CDO Message object to email reports.
I have a web application that uses a library which resides in TOMCAT_HOME/common/lib. This
We have a web application that uses dropbox as file storage. We have currently
I have a web application that uses the Spring Framework (3.1) and persistence through

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.