New server admin needing help setting up my Apache server to work with Chrome.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm sorry if this has been asked before.   I've searched a good bit through the Archives on Apache's site and I've spent the last couple days trying to find an answer on the web for my question.

I have a Virtual Private Server that I'm renting through GoDaddy.   It's running CentOS 6.7 in a Virtuozzo environment.   I have an Apache - version 2.2.31 server setup.

I can't figure out how to disable caching though.   I'd like to disable it system wide, but even if I can just disable it per website, that'd be better than nothing.    I've tried setting the following in my index.php's head tag:

    <meta HTTP-EQUIV="cache-control" content="no-store, no-cache, must-revalidate" />
    <meta HTTP-EQUIV="Pragma" CONTENT="no-store, no-cache" />
    <meta HTTP-EQUIV="Expires" CONTENT="0" />

But that didn't work.   After some googling, I found a bug report saying Chrome ignores the meta tag stuff.   The developers said it wasn't a bug and was that way on purpose.   Someone said the solution is to properly configure the server.

I don't know very much about website design and this is my very first website.   I've tried setting some stuff up in .htaccess.   This is what I put in that file:

<Ifmodule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "now"
</Ifmodule>

DirectoryIndex index.html index.php
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R]

I have the mod_expires module enabled through cPanel's EasyApache 3.  But this doesn't seem to fix the problem at all.   It's a real pain in the butt.   The only way I've found to get around the cache stuff is to actually clear Chrome's browser cache.   I cannot expect users to do this though on a regular basis, just to get an updated version of my site.    Is there any Apache configuration options that I could setup that would disable the cache or at least force the browser, regardless of which one, to always check for the latest files?

Any help is greatly appreciated.   Thank you.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux