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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:11:57+00:00 2026-06-10T12:11:57+00:00

Does anyone can help me with caching a json string in Trigger.io? I have

  • 0

Does anyone can help me with caching a json string in Trigger.io? I have a lot of json request for which i think its a good idea to cache them for say 1 hour for example. According to the jquery manual about $.ajax(Trigger.io points to this manual for forge.request.ajax) there is no caching for jsonp and script as a type but i’m using json here so i was hoping to do some caching on it.

I’m using the forge.request.ajax like so:

  forge.request.ajax({
    url: the_url_to_api,
    dataType: 'json',
    cache: true,
    success: function(data) {
      parsed_template = _.template( $('#sales_index_template').html(), {nowOnSale:     data.activeSales, soonOnSale: data.upcomingSales } );
      app.end_set_right_content(parsed_template);
    },
    error: function(error) {
    alert('Request for sales failed');
    }
  });

And this are my headers for the json return script in the API

  • Date Tue, 28 Aug 2012 15:19:30 GMT
  • x-powered-by PHP/5.3.15
  • Connection Keep-Alive
  • Content-Length 4294
  • Pragma cache
  • Server Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8g PHP/5.3.15
  • Content-Type application/json; charset=utf-8
  • Cache-Control max-age=3600
  • Keep-Alive timeout=5, max=100
  • Expires Tue, 28 Aug 2012 16:19:30 GMT

With the above settings there is no caching going on if i look in chromes or safaris network debugger.. Maybe someone can help me with what i’m doing wrong? or maybe somebody has a better idea for caching in Trigger.io?

Thanks in advanche!

  • 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-10T12:11:58+00:00Added an answer on June 10, 2026 at 12:11 pm

    In a recent application I developed I cache (in memory) the resulting json until the user presses the little “refresh” icon. I guess I could add an extra user preference setting to automatically expire in x days. Also, instead of using memory I could have utilized trigger.io to save the json to disk.

    Here is the app if you want to see how I do it (Note: I committed a couple of untested tweeks this morning):

    https://github.com/dragthor/south-ridge-app

    The viewmanager.js handles most of the backbone.js model caching logic. Basically I do the usual:

    1. Is the model in the cache?
    2. If Yes, then use cached model.
    3. If No, then bind model (via json) add to cache.
    4. Use it (the returned model).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I cut a string and then assign into an
Does anyone know why I can't see an HTTP request that results in a
Does anyone can help about to serialize my tastypie api to response with plist
Can anyone help with this I really can't see what is wrong. I have
Does anyone can help me converting these rules to [ISAPI_Rewrite]. Thanks. RewriteEngine On RewriteCond
does anyone know where I can download this zip file called businessdays.zip which was
Can anyone help with how to use a jQuery get (json, txt, xml, whatever)
As the header states, have I understood caching correct, and if so does anyone
Can anyone help please? I have a image that I am displaying on my
Wonder if anyone can help. I have a c# web application that uses the

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.