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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:46:12+00:00 2026-05-19T00:46:12+00:00

I have a web application already in place, and I’m working on an iPhone

  • 0

I have a web application already in place, and I’m working on an iPhone app. I have a fundamental question about caching/syncing data between the two.

So probably 80% of the iPhone app is more-or-less reading (GETing) data from the webapp (it’s heavy on stats, so it gives you access to your stats and such). Should I be reloading this data every time a screen is loaded? If so, no syncing/caching would be required, since it would be “fresh” every time. However, it seems like I’d be sending unnecessary requests back to the web server for no reason in most cases, since often the data would not have changed.

I was thinking of caching this data locally on the phone somehow, but I don’t know what the “best practices” are for this. Or if I should just sync up a sqlite DB on the iPhone with data from the web app, and provide “refresh” buttons in the nav controller title bar to manually request an update.

I’m not necessarily looking for code, just more-or-less putting a plan together.

Suggestions? Thanks!

  • 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-19T00:46:13+00:00Added an answer on May 19, 2026 at 12:46 am

    It really just depends on how often the data on your web server will be updated. If it’s updated infrequently, then I would suggest caching the data on the iPhone. But if there is a flurry of activity on your web server and having access to the most up to date information is considered critical to the success of your project, then you’ll need to send GET requests.

    I don’t know if the iPhone can utilize Comet, but that could be an option to “push” updates to your phone if it’s supported.

    You could also have the phone periodically check the server for updates. The server could return status code 304 Not Modified if the data hasn’t changed. This is less data intensive than pulling the actual data in each GET request. In this case, you would only pull fresh data if 304 was not returned.

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

Sidebar

Related Questions

I have a working web application which already has a login and registration system.
I have web application and I do not really care about IE6 users. However
I have an ASP .net Web Application already deployed on my local machine (virtual
I have a ASP.NET Web Site/Application, and was wondering where a good place to
This is a pretty fundamental question when using NHibernate in a web application, but
I have a 3-tier web application (database, app tier, web tier) written in MVC.
I have a web application that is run as www-data. I need to have
This just saves time. Since I already have a web applciation. I can just
I have web application written in java using Eclipse. It has just one servlet
I have web application which we deployed in a production . We have separate

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.