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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:37:33+00:00 2026-05-23T00:37:33+00:00

I have this script <?php header(Expires: Sat, 11 Jun 2011 00:00:00 GMT); echo Hello

  • 0

I have this script

<?php
header("Expires: Sat, 11 Jun 2011 00:00:00 GMT");
echo "Hello World";
?>

It just writes “Hello World” and set the cache to expire on next Saturday.

Now, when I load this page in FireFox and click on reload button, it makes a new request to server to load the page instead of just serving it from cache (I think to ensure if last-modified is still valid).

However, if I put my cursor on the address bar and press Enter, FireFox serves the contents from cache.

Why is that so? Why does in first case (reload) it makes a request to server, but in second case (refresh, I guess?) it serves from cache?

  • 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-05-23T00:37:34+00:00Added an answer on May 23, 2026 at 12:37 am

    I think the terms ‘refresh’ and ‘reload’ are basically synonymous. I see this line in RFC 2616 that describes HTTP/1.1 caching that provides a possible slight difference:

    An expiration time cannot be used to force a user agent to refresh its display or reload a resource

    In other words, perhaps you could say refreshing is for displays, and reloading is for resources. But since browsers’ primary use for resources is display, I don’t see a difference.

    Here’s a short writeup on the terms by a developer who has dealt with browser cache control. The terms he prefers are these:

    • load: hit Enter in the address bar; click on links
    • reload: F5; Ctrl+R; toolbar’s refresh button; Menu -> Reload
    • hard reload: Ctrl+F5; Ctrl+Shift+R

    (The hard reload forces the browser to bypass its cache. For Firefox, you hold down Shift and press the reload button. Wikipedia has a list of how to do this for common browsers. You can test its effect on this page.)

    To answer your question about how Firefox decides when to refresh, here is how the link from above explains it:

    • load: no request happens until the cached resource expires
    • reload: the request contains the If-Modified-Since and Cache-Control: max-age=0 headers that allow the server to respond with 304 Not Modified if applicable
    • hard reload: the request contains the Pragma: no-cache and Cache-Control: no-cache headers and will bypass the cache
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple php script <?php echo '<pre>'; // Outputs all the result
My script: <?php ob_start(); header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires: Sat, 26 Jul 1997
I have been using this simple script to generate images from text: <?php header('Content-type:
i have this code: <script> $(document).ready(function() { refresh(); }); function refresh() { $.get('getMessageDetails.php', function
i have this code: <script> $(document).ready(function() { refresh(); }); function refresh() { $.get('getMessageDetails.php', function
i have this code: <script> $(document).ready(function() { refresh(); }); function refresh() { $.post('getMessageDetails.php', function
I have been writting a keyword search script based on this tutorial: http://www.hackosis.com/2007/11/06/howto-simple-search-engine-with-php-and-mysql/ Like
I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
Well basically I have this script that takes a long time to execute and
I have this Perl script with many defined constants of configuration files. For example:

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.