Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
scannist
Joined: Oct 20, 2003
# Posts: 178
|
Posted: 01/24/2005 01:30 am
Hello
I have an SSI (service side include) for the menu. Most of my files are .htm and a couple others are .php as they serve up some RSS feeds.
I noticed my site's pages weren't "cacheable" - no "modified last" date was being provided by the server. After reading up on the subject, I found I needed to change the file attributes to 654 and use "XbitHack Full" in the .htacess file.
Now the .htm files are cacheable, but the .php files still aren't. Do I need more commands in the .htaccess file?
|
 |
scannist
Joined: Oct 20, 2003
# Posts: 178
|
Posted: 01/24/2005 01:40 pm
Okay... Forget my last post. I decided to dump SSI.
Now that I have, all of my pages are "cacheable" with one big exception and that's my few PHP files.
How do you get PHP files to be cacheable / provide "last modified" data?
|
 |
lizardz
Joined: Nov 12, 2004
# Posts: 1394
|
Posted: 01/24/2005 03:26 pm
look up 'php header last modified' on a search engine.
you need to make a little function that creates a last modified header based on the actual file last modified date, assuming most of the content is static. If the content is dynamic, it's a pain, you have to do more complicated things, I wouldn't bother.
|
 |
scannist
Joined: Oct 20, 2003
# Posts: 178
|
Posted: 01/24/2005 03:43 pm
I presume to say the content of the PHP files is dynamic since it's updated daily from RSS feeds.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|