Cache problem apache

e11en

New member
Joined
Aug 11, 2016
Messages
1
I've got a problem, I keep getting the old versions of files. For instance I've put a new version of an image online but when I view it in my browser I get the old image. When I use FTP to get the image is the correct new image. I've tried adding some things to my httpd.conf (directadmin > Custom HTTPD Configurations) which I all found online in the hopes I could disable my cache
Code:
EnableSendfile off
FileETag None
<ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
<IfModule mod_expires.c>
  expiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType text/javascript "access plus 1 seconds"
  ExpiresByType application/x-javascript "access plus 1 seconds"
</IfModule>
All without luck and now I'm kind of stuck. I've of course disabled my browser cache so it's not a browser issue and restarted httpd.

Could somebody help me fix this issue?
Thanks in advance!
 
Browser plugin / adon to delete cache

Path server: public , private or redirects to.... ( old server / webspace with the ftp account)

( using cdn)

IF WEBAPLICATION cache empty option
 
Last edited:
Is the images loaded in a page? Then go to the image in your webbrowser directly, e.g. example.com/images/picture.gif
Great change you see the old picture. But now refresh your browser with CTRL+F5. If now your correct picture is shown your browser disk cache is was not emptied before. After that the image is also shown correctly in your page.
 
Back
Top