HTTP Headers & Cache-control

Aug 14, 2007

I was running into a problem where PHP was automatically sending the following HTTP headers:

Code:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
This caused a problem in that my browser (Camino) would not let me view source without reloading the page. For state-based pages, that was a nightmare and meant I couldn't use my main browser for development!

Now that I have identified the problem, I am wondering what the point of those headers are, and whether I need them. I can definitely overwrite them but am not sure if I should.

My web app does set cookies (uses PHP sessions). I believe that it is the setting of the cookie that triggers PHP to send those headers. If I don't set a cookie on a PHP script, those headers are not sent.

how I can manage cache-control properly so that I can view source in Camino? Is no-cache etc. really important if you're setting cookies?

View 0 Replies


ADVERTISEMENT

Enable Http Headers In Plesk

Jun 20, 2008

I have a problem with my site where users log in (vbulletin) and yet the script doesn't log them in. After some research i found out this happens due to http headers.

I own a dedicated server which has plesk as the control panel, i do not know where to go and find the option to enable Http Headers.

View 8 Replies View Related

PHP And Cache-Control

Jan 27, 2008

I seem to have the opposite problem of what most people complain about... I'm using some custom-built PHP scripts, the output of which is not getting cached. I want the output cached, because it doesn't change often.

If it's relevant, I'm using ob_start() to serve up a GZIP-compressed page.

I start off with a header("Cache-Control: maxage=3600, must-revalidate"). Yes, it's first, and yes, it's showing up properly in the browser.

However, requesting the page again returns an HTTP 200, not the 304 I'm expecting. It's pulling down the whole page again. It's not changing in between requests, and I'm simply visiting the URL again, not hitting Refresh. (Although it really shouldn't matter.)

View 1 Replies View Related

Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk

Apr 24, 2013

I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).

I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.

View 2 Replies View Related

Redirect Http:// To Http://www

Jun 23, 2008

Does anyone know how to redirect the URL of a host so that it always goes to the www subdomain? Is this done with RedirectMatch or is a rewrite rule?

View 3 Replies View Related

Http Messed Up But Not Http

Mar 31, 2008

where when I view my website through http using Firefox, it never stops loading. If I use IE, then I get a "page can not be displayed" error.

If I use https then everything works fine.

I have noticed that if I delete lines from the files, I don't have this problem.

If I try viewing images (so I know it can't be an html of php problem) some look fine (the very small files). But, larger files, around 168 kb, load halfway and the second half is distorted (green and purple chunks and other random colors and lines).

If I view the image through https, the image is perfectly fine!

If I put my site through w3.org's validator (just to see what it would report) it says "500 Line too long (limit is 4096)".

My website used to work, so I know there isn't any code in the pages that would cause this to happen.

Is there an Apache setting I check? Perhaps it is sending a really long header that I can not see? I am not really sure what to do. I have made my site to force https but it's slow and not signed.

View 6 Replies View Related

Page Headers

May 1, 2007

some clarification on the following page headers?

I always presumed the Expires: date is part of the page cache instructions, however I was told its to do with the cookie. I thought the cookie expire was set as expires=date in the set cookie line and not on a new line with the :

HTTP/1.1 302 Found
Date: Sat, 21 Apr 2007 20:12:46 GMT
Server: Apache
X-Powered-By: PHP/4.4.2
Set-Cookie: oscsid=4d9ad82; path=/; domain=www.******.co.uk
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://www.******.co.uk/
Connection: close
Content-Type: text/html

The domain has been blanked out coz im paranoid about bots Yes its an Oscommerce store and all of them set this expires header to the same date!

View 2 Replies View Related

Message Headers And IP

Jun 13, 2007

I have a dedicated server and I am using the SMTP of one of my domain names to send mail. The IP of this domain name ends in .25 and the server hostname IP ends in .24.

The emails that are received list the server hostname and IP in the message headers instead of the IP of the domain name that is sending the email. Is there something that can be done about this? I read that a message could be mistaken as spam if it doesn't originate from the exact IP of the domain in the 'from' field.

View 4 Replies View Related

Aol Spam Complaint, No Headers

Apr 6, 2008

Need to trace this abuse complaint from AOL. They provided the server IP and spam email body, but no headers.

How can I go about tracing this on a cpanel box?

View 12 Replies View Related

Cannot Find SNMP Headers

Nov 13, 2007

I am installing rtg, but it returned error
configure: error: Cannot find SNMP headers. Use --with-snmp= to specify non-default path.

I have installed net-snmp by command
yum install net-snmp net-snmp-utils

and thought snmp installed to /usr/share/snmp. However, when using configure --with-snmp=/usr/share/snmp, still the same error.

View 6 Replies View Related

Anyone Know How To Read Email Headers

Jul 8, 2007

I'd love to contact the domain registrars of the recipient spammers who are barraging me with the latest "google riches", or "ebay success" sales pitch emails, but I lack the knowledge of how to reveal the email headers and interpret them.

Is there a particular email client program that would allow me to view all parts of the email ? Maybe I'm using the wrong client (outlook), that would not allow me to view the more technical parts of the email, but but I don't know.

If I go ahead and click on their "unsub me" links at their bottom, that's their tricky way of finding out what emails are active and possibly make it worse for me. I know that it's illegal to send me email that I didn't opt into, in the first place, even if they do provide the unsubscribe link at the bottom, with the usual "Icann" spam disclaimer that they include.

View 2 Replies View Related

QMail Inconsistent Headers On Plesk

Dec 1, 2008

qMail inconsistent headers on Plesk

We are facing this problem on a Plesk (serverpsa v8.6.0_build86080910.19 os_CentOS 5)
The scenario is that on this server we have around 5 domains, one of them is the main domain that is also in the hostname.

On the main domain some custom social networking PHP script is running that sends out mails using SMTP authentication, now when welcome mail or invites or notification mails or any such mail are sent through the script, it includes other domains in the headers randomly:

Received: (qmail 15896 invoked from network); 24 Nov 2008 18:45:05 -0500
Received: from somedomain.com (HELO server.maindomain.com) (xyz.xyz.xyz.xyz).....

View 0 Replies View Related

Sendmail - Force The Reply-to And From: Headers

May 20, 2009

How can I force sendmail to ignore it when a user sets the From: and Reply-to: headers for an email, such as a PHP script? I would like to force it so it always uses whatever email I set.

I cannot seem to find how to do this... sendmail config is quite difficult.

View 0 Replies View Related

Random Domain In Email Headers

Jan 22, 2008

A few customers have noticed random domain names inside their email headers and I can't figure out why.

Here's a copy of an email header to show you where the domain is being shown..

Code:
Received: from 87******.no-dns-yet.**** (HELO Computer4) (87.127.166.191)
by randomdomain.co.uk with SMTP

The domains that it is using are hosted on the same server as the client, but do not belong to this client.

View 1 Replies View Related

Host Headers In IIS6 On Server 2k3

Jan 22, 2008

I am attempting to change the host headers on my site that take my domains and forward them out to another domain.

My problem is that if a person type in [url], it brings them to my site and every link of the site is then [url]instead of redirecting it to my intended [url]

View 0 Replies View Related

Expires Headers Filename Vs CGI Params.

Jul 27, 2007

I am setting up Expires headers for my site. The site allows users to upload photos of themselves. The photos are stored as <user id number>.jpeg. I want these to be cached, but updated when the user uploads a new photo. From what I understand, new browsers use ETags to make sure this happens (since if they upload a new file, the inode and/or mtime will change). However for older browsers, I plan to add ?file-mtime to the end of the file name. This should allow caching but it will change when the user uploads a new image. Will the cause any technical problems with caches that would not be a problem if I changed the filename to be user_id.mtime.jpeg when the user uploads the file? The trade-off is that if I just append ?file-mtime to the end of the filename, I don't have to track these images in a database or use file globs (cpu-expensive for large directories) to find the filename to output.

View 3 Replies View Related

Exim Filter - Remove Headers

Aug 30, 2007

i have cpanel 11 with exim 4.6

i would like to be able to remove certain headers with the exim filter.

View 2 Replies View Related

Plesk 12.x / Linux :: Too Many Received-SPF Headers

Dec 15, 2014

I maintain a server with a few domains. The server runs Plesk and Mailman. There are about 50 mailing lists with number of subscribers ranging from a couple people to a few hundred people. All work fine.

There is an additional list with around 2500 subscribers. Messages sent to this list are being received with nearly 500 identical "Received-SPF: pass" lines. Besides seeming odd, it's particularly problematic as some domains are bouncing the emails because the header is too large.

This behavior started after I upgraded from Plesk 11.x to 12.x.

The SPF lines look like this:

Received-SPF: pass (SERVER-HOSTNAME-HERE: localhost is always allowed.) client-ip=127.0.0.1; envelope-from=BOUNCE-LIST-ADDRESS-HERE; helo=SERVER-HOSTNAME-HERE;

Where SERVER-HOSTNAME-HERE is our hostname and BOUNCE-LIST-ADDRESS-HERE is the list's bounce address.

For what it's worth the server hostname and the domain of the list do not match.

This issue seems to be tied to the number of subscribers. We made a new list with a few subscribers and messages looked fine. We added the 2500 subscribers to the new list and then we saw the plentiful Received-SPF: pass entries.

View 5 Replies View Related

Emails Not Displaying Mail Scanner Headers

Sep 14, 2008

i installed the latest version of the mail scanner on my linux server. It has been tested to be scanning and running properly. But one thing that is unusual is that the emails that is being processed by the mailscanner does not get tagged as its being processed by it. Hence i do not really know whether it has been processed.

When i check the email full headers, i am missing information like spam score, spam information and spam status. I did a check in the mailscanner.conf and the configuration was done correctly.

how can we set these information to show on the email header that it has been processed.

View 2 Replies View Related

Apache :: End Of Script Output Before Headers - Server

Jun 13, 2013

I get this error sometimes in the apache log for my site (and then my server gets slower and slower until it goes offline):

Code:

[Thu Jun 13 11:58:48.675867 2013] [core:error] [pid 1368:tid 2344] [client 111.222.333.444:38360] End of script output before headers: index.php

I am using a Windows Server 2012 64 bit server, but I had the error on a Windows Server 2008 64 bit server too.

The new server only has 1 site on it - and it is a Joomla 2.5 site. The server is dedicated and has 8 CPU cores and 24 GB ram and so on.

I have googled the error enough to understand that my Apache server (downloaded from this site) is misconfigured somewhere.

View 2 Replies View Related

Apache :: How To Remove Connection And Keep Alive From Response Headers

Aug 17, 2012

How can i remove "Connection and keep-alive" from response headers ? I am using Apache http server to load balance two tomcat nodes

Apache Server- Apache/2.4.2
mod_jk - 1.2.27
Apache tomcat - Apache Tomcat/7.0.23
JDK - 1.6

I have also enabled SSL in the apache http server using mod_ssl. The load balancing works fine, but in all the response headers these connection attributes are added "Connection: keep-alive keep-alive: timeout=5"

Is there a way to remove these headers? I do not want these headers to be added in the response. I have also tried mod_header to unset these headers, but no use. HTTP/1.1 protocol is being used, so eventhough the connection is not present in the header, the connection would should be considered as persistent. Why is apache sending these attributes explicitly in each response. I just want to get rid of these attribute...

View 7 Replies View Related

Plesk 12.x / Linux :: Passing Headers To Apache Through Nginx

Jul 23, 2014

I want to pass the X-SENDFILE header to apache through nginx.

Is this possible or do i have to disable the reverse proxy?

View 1 Replies View Related

Apache :: Last Modified Or ETAG Headers On Website Hosted Via 2.4

Dec 18, 2014

I have compiled apache with below configuration

./configure --prefix=/app/apache2_4 --with-apr=/app/apache2_4/apr --with-apr-util=/app/apache2_4/apr-util --with-pcre=/app/apache2_4/pcre/ --enable-ssl --with-ssl=/usr/bin/openssl --enable-modules=all --enable-mods-shared=all --enable-proxy --enable-mime-magic --enable-rewrite --enable-speling--enable-mpms-shared

But after compilation I have added expiry,deflate headers but I am not able to see either ETAG and LAst-modified header...

View 1 Replies View Related

DNS Cache

Apr 17, 2009

I have moved my domain out of hostgator like a month ago..

[url]

The whois shows my new nameservers and IP

Why is my page being redirected to hostgator suspended page.

My domain is not even registered with them

the domain is nuzil.com

any reviews about that.

View 14 Replies View Related

Cpu Cache?

Apr 28, 2008

the NOCONA and IRWINDALE are old cpu,

i find the main difference of them is L2 cache (1MA2M),

i want to ask what service need more L2 cache?

for example:a lot of db usage? or httpd? or?

View 3 Replies View Related

Apache :: Setup Dynamic Content Configuration - Correct Headers

Aug 28, 2014

I am trying to setup dynamic content configuration in apache 2.2 httpd conf. Here is the configuration and couple test cases:

CONF:
<FilesMatch ".(js|css|gif|jpg|jpeg|png)$">
Header set Cache-Control "no-cache, no-store, max-age=0, must-revalidate"
</FilesMatch>

TEST 1:
Without <FilesMatch> directive, the headers are set to all requested content as it should. This includes content served from apache server and content from a separate application server.

TEST 2:
If I use the above configuration example, I can see that static content comes with correct headers only

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved