Fork me on GitHub

pagesetter image and expire header  Bottom

  • adding this code to httpd.conf

    Code

    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
    header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
    </FilesMatch>


    set expire date for my file and decrease the HTTP REQUEST.
    but one problem ! in my homepage , i use a Pagesetter list that have a lot of pic .
    in Pagesetter image URL like this :

    http://community.zik…image&pid=372&tmb=1

    and this address doesnt have any ext .
    how can i add expire header to my Pagesetter image ?
  • In the Pagesetter root there is a file called pnfile.php. I there you'll find a function pagesetter_file_get. In there you'll see how expire, pargma, and ETag option are set. You can play around there to achieve browser caching.

    Please do post your results back.

This list is based on users active over the last 60 minutes.