Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

page headers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-02-2005, 04:39 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default page headers

Hi there does anyone know how to do this, just got some advice on my site about changing page headers but not sure how to do this (it might even be a server config)

Quote:
If I were you I'd look at changing the Expires: portion of your page header response. At the moment it read 'Expires: Mon, 26 Jul 1997 05:00:00 GMT'.
If you want a browser to retreive a new copy everytime visited you should set it to '-1' rather than a backward dated timestamp.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #2  
Old 12-02-2005, 05:21 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Hi cotc,

Yes that would be some sort of default server config behavior as the "Expires" meta information isn't fed by xcart. You can probably override that output by editing your /skin1/meta.tpl and putting in your own "Expire" meta information tags.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 12-02-2005, 06:01 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Hmm just checked with our host and they said it wasnt the server it was the code (doesn't surprise me that they said that)

I entered the expire information into the meta.tpl but it didn't have any effect at all
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #4  
Old 12-02-2005, 07:11 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Hi cotc,

Just visited your site and in viewing the source am in fact seeing the new "Expire" meta tag:
Code:
<META HTTP-EQUIV="expires" content="-1">

This is what you intended right

Make sure you refresh browser or force it to reload not from cache by doing CTRL F5
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #5  
Old 12-02-2005, 07:13 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Not its definatley a server problem, although the code is in there the server is orverriding it. i.e if you goto
http://www.seoconsultants.com/tools/headers.asp

and enter http://www.justhom.com and click on check server headers and then have a look at the "expires:" it still show the back date as if the meta was not in there.

im talking to my host about fixing it (their first reaction was that its the x-cart code)
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #6  
Old 12-06-2005, 12:18 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Ok sorted.
All that needed doing is that on .php pages like home.php , product.php etc.

after
Code:
require "./auth.php";

I added

Code:
header("Cache-Control: no-cache, must-revalidate"); header("Pragma: public"); header("Expires: -1");

seems to have done the trick now
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:59 AM.

   

 
X-Cart forums © 2001-2020