Tillåt cache|Feedback & idéer om NordicHardware|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
Tillåt cache
zcorpan
Kommer du hit ofta?
Medlem
Forum Posts: 848
Member Since:
December 26, 2003
sp_UserOfflineSmall Offline
1
December 6, 2004 - 1:08 am
sp_Permalink sp_Print

Problemet att Firefox "scrollar upp" (laddar om) när man går bakåt i forumet ligger inte i webbläsaren, utan det beror på att Firefox respekterar de HTTP headers som NH anger.

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache

👿

Snälla, tillåt cache så blir det trevligare att surfa på NH.

<?php
header ('Pragma:'); // HTTP 1.0
header ('Cache-Control: public'); // HTTP 1.1
$offset = 60 * 60 * 24 * 2; // Sista siffran anger antal dygn
header ('Expires: ' . gmdate("D, d M Y H:i:s", time() + $offset) . ' GMT');
?>

Tack 😉

Avatar
NH|sibbor
Kommer du hit ofta?
Medlem
Forum Posts: 1846
Member Since:
September 17, 2001
sp_UserOfflineSmall Offline
790520
December 6, 2004 - 1:19 am
sp_Permalink sp_Print

Ta detta med JonaS.

skiroy
Member
Medlem
Forum Posts: 7809
Member Since:
September 12, 2001
sp_UserOfflineSmall Offline
790523
December 6, 2004 - 1:24 am
sp_Permalink sp_Print

Ahh...en bra grej detta.

Men som sibbe sade...ta detta med Jonas. 🙂

*tråd cashelåst*

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 358
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL