FTP Cache Issue

Status
Not open for further replies.

coracaox

New Member
Messages
8
Reaction score
0
Points
1
Hi
I am having an issue when I use an FTP client to update files. For whatever reason - even if I delete the file - the updates aren't reflected in the web browser when I load them; the browser fetches the old data. Furthermore, going to the link directly and viewing the source, I can see that the file itself has not been updated on the server. Is there a workaround for this? Or what is causing the issue? Clearing the data of my internet browser does not work because the file isn't updated on X10 server either.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
x10hosting recently implemented a different web-server-software setup on their free-hosting servers - which is a combination of the Apache web server and the Varnish cache server
the cache server maybe why there is a delay before you 'see' the file - after you upload it

staff has said - to override [ Varnish cache ] try adding the following line to your [ .htaccess ] file(s)
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"
 

coracaox

New Member
Messages
8
Reaction score
0
Points
1
x10hosting recently implemented a different web-server-software setup on their free-hosting servers - which is a combination of the Apache web server and the Varnish cache server
the cache server maybe why there is a delay before you 'see' the file - after you upload it

staff has said - to override [ Varnish cache ] try adding the following line to your [ .htaccess ] file(s)
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

Thanks so much. I looked for the htaccess file in the root directory where I assumed it is usually hosted but did not locate it and did not seem to render it in a search (hidden files should be visible)- do I have to create one? Thanks.
 

coracaox

New Member
Messages
8
Reaction score
0
Points
1
Ok... I am not trying to be insensitive but is there any staff watching this? I know it's a free account, but this is really crappy service and I am really frustrated. I should not have to wait 30 minutes in between uploading files to see any changes. Why was the switch to this server done? Making a .htaccess file with the above code does not fix the issue - at least point me to a FAQ that is easily navigable where I might be able to find other solutions because this is ridiculous. ...Furthermore, I considered updating to a paid account as I really need to get these changes done but there's no information regarding if there is a Varnish cache on the paid servers either and I don't feel like spending money for the same crappy issue.

Thanks.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
The solution is to put that line inside your .htaccess file for the directory.

It may take a minute or two to flush itself through the cache, but it /will/ flush itself through.

You can test this by going to http://isvarnishworking.com/ and putting in your URL. It should return "Yes! (Sort of)"

Further, free hosting is volunteer support. People like bdistler who take their own time to help out people in the community. If you're looking for premium-level support, then you will need premium hosting.

You received a response with the correct answer 20 minutes after you asked your question--that's a really good response time for free support.

The root cause of your issue is that you didn't even have a htaccess file at all in your root directory. I've put in there for you, and the cache control is working correctly.
 
Last edited:

coracaox

New Member
Messages
8
Reaction score
0
Points
1
Thank you for the response - yes I am aware that it is free hosting, I can read just fine. I believe I even stated as much and that I would be happy to pay for premium if I knew that Varnish wasn't being used with the premium service as well. I also thanked the above user for their input, while I noted that even with the fix, there were still some issues I was experiencing. I am allowed to be frustrated when I am experiencing a crappy issue. Furthermore, it appears to be a common crappy issue so perhaps I'd have been last irritated if there was a FAQ database or something easily manageable - or a sticky - for the thing in the first place. WordPress is free as well, but they've had an easily navigable FAQ database since their inception. Either way, complaining further has helped me one step further to hopefully a resolution so I'd say it wasn't a waste of time. Thanks again for your support.
 
Status
Not open for further replies.
Top