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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:38:35+00:00 2026-06-12T11:38:35+00:00

My application receives data from the another server, using API with limited number of

  • 0

My application receives data from the another server, using API with limited number of requests. Data changing rarely, but may be necessary even after refresh page.

  1. What’s the best solution this problem, using cookie or HTML5
    WebStorage?
  2. And may be have other way to solve this task?
  • 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-12T11:38:37+00:00Added an answer on June 12, 2026 at 11:38 am

    As much as cross browser compatibility matters, cookie is the only choice rather than web storage.

    But the question really depends on what kind of data you are caching?

    For what you are trying, cookie and web-storage might not be needed at all.

    • Cookies are used to store configuration related information, rather than actual data itself.
    • Web storage supports persistent data storage, similar to cookies but with a greatly enhanced capacity and no information stored in the HTTP request header. [1]

    I would rather say, it would be stupid to cache the entire page as cookie or web-storage both. For these purposes, server-side caching options might be the better way.

    Update:

    Quoting:

    data about user activity in some social networks (fb, vk, google+)

    Detect the web-storage features, using libraries like mordernizr and if does not exists fall back to cookie method. A simple example

    if (Modernizr.localstorage) {
        // browser supports local storage
        // Use this method
    } else {
        // browser doesn't support local storage
        // Use Cookie Method
    }
    

    [1]: http://en.wikipedia.org/wiki/Web_storage

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

Sidebar

Related Questions

I have an application that sends and receives data from another application running on
I`m developing an application which receives data from my GPS device like coordinates, speed
I am currently developing a web application that receives data from an on-site database.
I'm working on a data distribution application which receives data from a source and
I am sending and receiving data using fsockopen and fwrite. My application receives the
I'm trying to read data from a server by using a GET URLRequest with
I am developing a client-server-based web application using a canvas component to display data
I'm currently developing an Android application which needs to receive data from a bluetooth
Ok i need to use json on my iOS application to send/receive data to/from
I have a problem with my iOS application. I receive binary vector data from

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.