Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 06:51 pm EDT

Geeklog Forums

How to set header


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Can someone tell how to set header on every geeklog pages without hacking lib-common.php

Text Formatted Code

header ('ExpiresByType image/gif "modification plus 5 hours 3 minutes"');
 


Thanks,

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Put it in lib-custom.php (outside of any function).

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Cool.

Thanks,

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

lasat

Forum User
Newbie
Registered: 11/04/07
Posts: 6
Set this in your apache config. mod_expires is the hint
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Yes lasat.

I was looking for a setting on demand.

If you have no access to apache config. mod_expires you can set it in a .htaccess file too.

Thanks,

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 06:51 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content