cancel
Showing results for 
Search instead for 
Did you mean: 

Firefox 29 back button will not return to previous form

SOLVED
Highlighted
New User

Firefox 29 back button will not return to previous form

Previous screen is a form for searching and the results returned. Clicking on a "more info" button moves to the next screen and shows more info. The "back" button will not return to the previous screen, giving the message, "document no longer available".

Firefox is standard vanilla install. All other major browsers return properly to the previous screen. If this cannot be corrected, we will be forced to abandon FIrefox and recommend to our 46,000 customers to move to another browser, especially when using our website.

To duplicate this problem, go to www.mybfl.com/search.php, search for a book, and when displayed, click on the 'More Info' button. Clicking on the Firefox "back" button illustrates the problem.

1 ACCEPTED SOLUTION

Accepted Solutions
New User

Re: Firefox 29 back button will not return to previous form

Yes, Firefox 32 is when this behavior began.

I just went in and checked Tools->Options->Override Automatic Cache Management and for the moment at least, the problem has disappeared.

Thanks, hope this solves the problem.

16 REPLIES
SUMO Contributor

Re: Firefox 29 back button will not return to previous form

This is caused by Firefox honoring the instructions of the page not to cache or store it, so every reload requires another request to the web server. (See attached screenshot)

There might be a way to override this using an add-on, but in the short run, the best strategy is to open the links in a new tab or new window using one of these methods:

  • Ctrl+click or middle-click (scroll wheel) => open in a new tab
  • Shift+click => open in a new window
  • right-click menu also has these options
2014-07-15-21-55-25-7ff8f9.png
New User

Re: Firefox 29 back button will not return to previous form

Thank you for your response. If I understand you correctly, the problem is with our website's presentation to Firefox. How do we keep our website pages from instructing Firefox not to cache or store the page?

We are not aware of having provided that kind of instructions and we are not doing an https.

Thanks for your help.

SUMO Contributor

Re: Firefox 29 back button will not return to previous form

The home page (index.php) comes with the same headers, so it may not be limited to search results.*

I'm not an expert on this but I think there are three places to check:

(1) In your php scripts, look for any header() directives at the beginning of the file.

(2) In the root directory, look for an .htaccess file that may contain cache-control headers.

(3) Check httpd.conf for cache-control headers. This may not be accessible on shared hosting services.

* However, Firefox only displays that dialog if the page you're trying to go back to was generated by a POST request.

New User

Re: Firefox 29 back button will not return to previous form

Here is the content of .htaccess:

  1. comment spam

ErrorDocument 503 "Temporarily unavailable" RewriteEngine on RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} /email/log.php RewriteRule .* - [R=503,L]

It appears none on the above is relevant to anything other than when taking down a website for maintenance and returning a 503 to search engines.

All of our web pages have the same headers/trailers, ie:

require_once "std.php"

   <web page scripts>

require_once "trailer.php"

Moving from any page to another allows a return to the previous page using the Firefox "back" button unless the previous page contained a form (search, logon).

The problem seems to be the form on the previous page. It is as if Firefox is afraid it cannot safely fill in the form (ie, the page has not been saved "as is"), but which is actually what we want.

It does not matter what Firefox settings we could apply as we cannot tell all of our customers to whom we have recommended Firefox, "By the way, you have to make this setting to get it working like it used to work."

We need a way for our webpages to signal, "Yes, by all means cache and copy!"

We do not seem to have an httpd.conf file, but I will pursue the possibility of it affecting us with our hosting company.

Thanks, Jack

SUMO Contributor

Re: Firefox 29 back button will not return to previous form

Could you check inside std.php for any header() lines?

New User

Re: Firefox 29 back button will not return to previous form

Checking the httpd.conf file content, there are no caching instructions other than where to cache SSL data and for how long. Firefox seems to think there is a security problem by caching/copying the page.

How do we turn that off? What can we add to what file so Firefox treats pages with HTML forms like any other page?

SUMO Contributor

Re: Firefox 29 back button will not return to previous form

The error description does make it sound like a security issue, but since it is an HTTP page, it isn't really about security.

I'm pretty sure those headers are being sent by your web server; by default, Firefox is happy to cache pages generated by a POST, whether they are send over a regular connection or a secure connection.

One option might be to send headers instructing Firefox to cache the page for a certain amount of time, e.g., 60 minutes, to see whether that overrides the no-cache headers. I can't experiment with that at the moment, I would need to research/test it first.

New User

Re: Firefox 29 back button will not return to previous form

Nothing like "header()" in std.php or any other php script (I did a grep). The first lines of std.php are:

<meta content="S-KAkQLVtW8mHkOuwlrU2y_x5_a39oPxiSitp99UzZQ" name="google-site-verification"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> 90) echo "<meta content="$Refresh" http-equiv="refresh">"; ?> <meta content="en" http-equiv="Lang"> <meta content="Books For Less - New and Used Books" name="description"> <meta content="" name="keywords"> <title>Atlanta's Largest Independent Bookseller</title> <meta content="Your Atlanta bookstore - buy, sell and trade new and used books in Gwinnett County, Suwanee, Buford, Lawrenceville, Sugar Hill, Alpharetta, Fulton County and the surrounding area. Textbooks, novels, bibles and more. Stop by today!" name="description"> <link href="www.mybfl.com/images/favicon.ico" rel="SHORTCUT ICON"> <style> [ bunch of style stuff ] </style> And, all the pages work except for the one that has the HTML form for searching on it. I tried the logon form page and it does move backward fine. So it is not necessarily a form thing. How do I send a header instructing Firefox to cache?

New User

Re: Firefox 29 back button will not return to previous form

I added the line:

<meta http-equiv="cache-control" content="cache, store, public" />

but still got:

Document Expired

This document is no longer available.

The requested document is not available in Firefox's cache.

   As a security precaution, Firefox does not automatically re-request sensitive documents.
   Click Try Again to re-request the document from the website.