Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

Pragma: no cache

I ran into the following:
print "Content-type: text/html/\nPragma: no-cache\n\n";

I know what the Content-type/html means, but my perl book doesn't explain the Pragma:no-cache.  Can anyone help with this?
0
donb1
Asked:
donb1
1 Solution
 
icdCommented:
When a document is requested from your browser it first requests the document header, which contains the date that the document was last modified. This date can be compared against any locally cached version (if any) and the document contents only retrieved if there is no local copy or the local copy is older than the one on the server. The Pragma: no-cache ensures that no local copy is made and the server is requested for the contents every time.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now