• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force Refresh URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Refresh URL


  • Subject: Re: Force Refresh URL
  • From: Jeremy French <email@hidden>
  • Date: Sat, 5 Mar 2005 12:04:30 -0500

One way to eliminate cached HTTP requests is to use unique URLs, to request the same piece of information. Your URL for requesting the current version number might look something like this:

http://mysite/currentversion?uniqueNumberHere.

Since each request for the current version has a unique trailing portion, the idea is the current request is always unique and therefore cannot have been cached. On the server end you would disregard the trailing "?uniqueNumberHere" and simply return the current version number.

---

On Mar 4, 2005, at 11:36 PM, Frank Fenn wrote:

in one of my applications I do an update check at startup retrieving the currently available version like:

NSDictionary *productVersionDict = [NSDictionary dictionaryWithContentsOfURL:[NSURL URLWithString:verurl]];

The problem I have is that my ISP caches all data....
Is there a way within my application to force a reload of the given URL so I can be sure to have always the
latest version of my file?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Force Refresh URL (From: Frank Fenn <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 2, Issue 299
  • Next by Date: Multiple CD/DVD "Installer"
  • Previous by thread: Re: Force Refresh URL
  • Next by thread: Re: Data Plotting info needed
  • Index(es):
    • Date
    • Thread