You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-12-11 11:52:06

tomolimo
Member
From: Grenoble, France
Registered: 2009-05-12
Posts: 515

Problem of reload with Firefox on back button

Dear all,
I could see a problem with FireFox when doing a back in browse history: the page is not reloaded, on the contrary: it is loaded  from browser cache.
I found on Internet that we should have more headers in the page to force FF to reload the page even with a back in history.
So in display.function.php file, instead of :

/**
 * Set page not to use the cache
 **/
function header_nocache() {

   header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
   header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date du passe
}

We should have

/**
 * Set page not to use the cache
 **/
function header_nocache() {

   header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); // HTTP/1.1
   header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date du passe
}

I made a test, and this really forces FF to reload the page even when doing a back in history.
Could it be possible to add this in future releases of GLPI?
Thank you,
Regards,
Tomolimo


GLPI 9.2.4 - PHP 7.2.13 x64 / ProcessMaker 3.3.0-community-RE-1.7 - PHP 7.1.24 x64 / Windows 2012 x64 / IIS 8.5 / MySQL 5.7.17 x64
Worldwide: >12316 PC, >9400 users (16 languages, >11 timezones), >360k tickets, >3600 entities, >4200 groups
Raynet is ARaymond (http://www.araymond.com) IT service management

Offline

#2 2012-12-11 13:03:48

tomolimo
Member
From: Grenoble, France
Registered: 2009-05-12
Posts: 515

Re: Problem of reload with Firefox on back button

It seems that there is the same problem with IE9, and it's ok with the same solution.
Who can confirm?
Tomolimo


GLPI 9.2.4 - PHP 7.2.13 x64 / ProcessMaker 3.3.0-community-RE-1.7 - PHP 7.1.24 x64 / Windows 2012 x64 / IIS 8.5 / MySQL 5.7.17 x64
Worldwide: >12316 PC, >9400 users (16 languages, >11 timezones), >360k tickets, >3600 entities, >4200 groups
Raynet is ARaymond (http://www.araymond.com) IT service management

Offline

Board footer

Powered by FluxBB