Linux / UNIX Tech Support Forum
This is a discussion on adding cache with php files within the Web servers forums, part of the Mastering Servers category; hello I tried to add cache handling to php files (which in my case are "static", their content doesn't change). ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hello
I tried to add cache handling to php files (which in my case are "static", their content doesn't change). I created a .htacesss with Code:
<FilesMatch "\.(jpg|jpeg|png|gif|css|php)$"> Header set Cache-Control "public" Header set Expires "Thu, 15 Apr 2099 20:00:00 GMT" </FilesMatch> i tryed to do it by adding Code:
header unset X-Powered-By header unset Vary Note that i don't have access to the httpd.conf file, and that i can not rename the php file Does someone has an idea to do it ? Here is the header file Code:
HTTP/1.1 200 OK Date: Sat, 24 Jan 2009 18:39:49 GMT Server: Apache/2.2.X (OVH) X-Powered-By: PHP/4.4.9 Cache-Control: public Expires: Thu, 15 Apr 2099 20:00:00 GMT Vary: Accept-Encoding Content-Type: text/html thanks Last edited by mumuri; 24-01-2009 at 11:12 PM. |
| Sponsored Links | ||
|
|
![]() |
| Tags |
| apache , cache , php |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux / UNIX: Adding a Directory to Your Path | sweta | Getting started tutorials | 0 | 12-08-2008 07:03 PM |
| Adding Users in Bulk + Passwords and permissions | ricksd2sd | Shell scripting | 0 | 23-04-2008 12:20 PM |
| Adding storage function to a mail server | satimis | Databases servers | 0 | 04-01-2008 01:15 PM |
| Shell Script for adding, removing and commiting the SVN (Subversion system ) | anilvrathod | Shell scripting | 0 | 07-12-2007 05:40 PM |
| problem in adding ip route | ranjithtechser | HP-UX | 0 | 09-11-2007 05:28 PM |