Closed Bug 923952 Opened 11 years ago Closed 6 years ago

Force cache reload of a redirect from the address bar

Categories

(Firefox :: Address Bar, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: braiamp, Unassigned, NeedInfo)

Details

(Whiteboard: [dupeme])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130911155223

Steps to reproduce:

1. Try to access a page directly without using the cache, or forcing the cache to refresh (i.e. clicking in a link, or typing a url in the address bar) for that specific instance.


Actual results:

Unless I disable the cache, Firefox will use the cache each time, and since the page could be redirected (i.e. using Moved Permanently or Moved Temporary) makes impossible to refresh the redirection until it expires. Or clearing the cache totally.


Expected results:

In Chrome I can press Ctrl + Enter and force the cache to be refreshed. Firefox lacks such functionality and users needs to disable the cache, go to the interesting url manually, activate the cache then press Ctrl + F5 to force the cache to refresh.
Severity: normal → enhancement
Component: Untriaged → Networking
Product: Firefox → Core
ctrl-shift-f5
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
@(In reply to Patrick McManus [:mcmanus] from comment #1)
> ctrl-shift-f5

That does nothing in any case. It doesn't have the desired behavior in Firefox 25. Please, confirm.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
its ctrl-shift-r .. sorry about that
(In reply to Patrick McManus [:mcmanus] from comment #3)
> its ctrl-shift-r .. sorry about that

Still don't produce the desirable behavior, I want to before, I'm in the url, the cache to forget and get fresh from the server. Seems that I've not explained well. Here a test case:

1. Set up a web server and configure it to respond HTTP Moved Permanently -> mozilla.com. Use Firefox to access the page
2. Type the server address, Firefox will cache the answer and redirect you to mozilla.com
3. Remove the configuration from the server and add content.
4. Try to access with Firefox and you will be still taken to mozilla.com until you clear the cache or deactivate the cache completly.

Do the same with Chrome/ium and when you type the URL, instead of enter press Ctrl + Enter (for some reason, this has to be done twice), so the browser will not use the cache and fetch fresh content from the server.
ah - its the redirect that's of interest here.
Summary: Force cache reload from the address bar → Force cache reload of a redirect from the address bar
Component: Networking → Location Bar
Product: Core → Firefox
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [dupeme]
Version: 24 Branch → Trunk
The simplest solution here seems to be to be that when we reload (or shift-reload) a page, that we reload the URL that was originally loaded, rather than the one which is currently viewed.

I.e. the URL of the bookmarked that the user clicked, or the url that was typed into the URL bar. Not the URL that is currently in the URL bar. Most of the time those will be the same URL, but not if the original URL did a redirect.

To get to the URL that was originally loaded, we can either get it from the current document's nsIChannel (since http channels now remember their redirect chain). Or the Firefox front-end could simply remember it.
There's a roundabout way, using the Dev tools and using the "Disable cache" option. Its effects are local (per tab) and only while the dev tools are open.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago6 years ago
Resolution: --- → INACTIVE

The current solution is:

  • Open Web Developer Tools (Ctrl+Shift+I), click there "Network" tab and check the checkbox "Disable Cache" (disabled only in that tab)
  • Load the original URL, e.g. by the address bar
  • Enable the cache again (optional)

The page is now refreshed in the cache (or removed if the new content should not be cached) and the original URL is accessible also from other tabs.

(All other known old solutions not related to cache are incorrect now, like to forget about the site in the history or to clear site data and cookies.)

(In reply to BMO Automation from comment #8)

Per policy at
https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/
Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a
bug not present in a supported release of Firefox, then it may be reopened.

Interesting, this is marked as a enhancement.

Flags: needinfo?(automation)
You need to log in before you can comment on or make changes to this bug.