if i use Qualification.findAll() in many places, that means many http requests. How should I prevent these HTTP requests for a period of time; or should I only cache the file (send 302 Not Modified) on the http requests?
I could bound a array to the controller, but I may use this model in many controllers
The data won't change often (its a CV, each qualification etc); main reason I'm using ajax rather than static content is to learn JMVC as I'm new.
Each findAll() I use (same model) does its own http request. I could use 302 Not Modified but still use a http request. The alternative is to override the findAll function and bound the results to a static array first time executed, other times just return the array?
I have an event model with an array of attendees, on my page if the user
hits a cancel or rsvp button it sends a request to the server that
either adds or removes them from the list of attendees. Then i use the
events findOne method to grab the newest version of that object, when a
user rsvp'es all is good, when they cancel the correct data gets
returned, I can see it in the network inspector, but the response data
passed to my
callback is the cached version
Leave a comment on Alex Quirk's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic