how long to refresh cached file?

Status
Not open for further replies.

pman626x

New Member
Messages
6
Reaction score
0
Points
1
I uploaded a jpg file.
I then uploaded a revised jpg to overwrite the original jpg with the same file name. But the revised jpg file is not showing. The original jpg is still showing, as if it is cached on the server.
I cleared my browser cache.
I even tried loading it on a computer that has never opened the website before, and again, the old jpg file shows.

So how long does it take the server to refresh the image?


Also, if I delete a jpg file from the ftp, it still loads the jpg, even though it doesn't exist on the ftp anymore.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Hi @pman626x

Static files are cached for ~20 minutes on your server due to the Varnish cache. If you wish to disable it, you can add the following line in your .htaccess file:

Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Hi @pman626x
Static files are cached for ~20 minutes on your server due to the Varnish cache. If you wish to disable it, you can add the following line in your .htaccess file:
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"
is this for all x10hosting's free-hosting servers ?
 
Status
Not open for further replies.
Top