Welcome to Geeklog Thursday, April 02 2020 @ 09:19 am EDT

Geeklog Forums

How to set header


Status: offline

::Ben

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

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

PHP 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: 12/01/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: 14/01/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: 04/11/07
Posts: 6
Set this in your apache config. mod_expires is the hint
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/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 09:19 am.

  • 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