No Music Playing

Start your musical journey by discovering amazing songs and artists

Suggested For You

Caching Problem

Help needed
Funky
Funky
Started 20 years ago
Last activity 20 years ago

Dunno if it's a bug...Gonna ask the question anyway...

Got a track in the UCZ...I've uploaded a new version..wich is 4min00 long in stead of 3min55.

Problems:

  • Duration in the info isn't addapted to the new track lenght nor is the size of te track...
  • Where ever I've listened to the previous version, and if I don't clear the cache, I still hear the old version... (IE)

I've noticed that some users hadthe same remarque as me; namely...weird, I thought I linked the new song to te track...

Clearing cache is easy for me...But I don't think that modal users gonna clear their cache before listening to a newer version of an UCZ track.

By the way, if I try an edit this message and try to change the word 'track' in my second sentence with the word track, linked to my song...The link adds itself all the way down of the post, in stead of the place where I have put my cursor..

Or is it me?

Replies

Distreality
Distreality
#1

Weird...

Never had that problem... I think best ask Zark, it seems a bit unlogical that we would have to clear our cache before linking another file... That would mean that we should do it before every track we post then...

Sounds like a bug that occurs once in a while...wasn't the option in beta version, or am I wrong...?

Posted
aphone
aphone
#2

i had this problem too, i know Owen got it too... and i had to disturb someone to explain me how to clean my cookies temp cash etc

Posted
Distreality
Distreality
#3

well, maybe explain here how to do it... saves us all a bunch of questions when it happens... ;)

Posted
Administrator
Administrator
#4

yes i don't know why this happens,

normally i send the correct headers to your navigators,

with the filesize, the last modified date of the file etc...

but somehow the browser seems to only rely on the expiration date of the content ..

the same problem occurs if you change your profile picture and you check in the forum, you'll still see the old picture, ...

i could tell the navigator to not cache files, but that would put useless load on the server + pages wouldn't load as fast ...

i suppose the browser just sees the filename, looks in it's cache database, sees it has that file and it doesn't expire until XXX and therefore loads that without checking the server if a newer version exists ...

edit: i've added a must-revalidate in the http-1.1 header let's see if that helps

edit2: i've read on caching, and Htt1.1 introduces a new feature which is pretty smart called ETags, basically it's some sort of unique identifier, browser sends etag, webserver responds with a 304 if etags match, else it sends a 200 and content is fetched. generated an etag based on the unique media identifier used in ebel database.

lets see how that works oh yeah, and i set an expiration of 7days

Posted
Funky
Funky
#5

Originally posted by : ZARk i suppose the browser just sees the filename, looks in it's cache database, sees it has that file and it doesn't expire until XXX and therefore loads that without checking the server if a newer version exists ...

Even if the filename is different?

Posted
Administrator
Administrator
#6

which is the ultimate solution i'd use if the etag don't work :)

but it requires a bit of rewrites in the flash player ;)

  • flash totally fucks up if you start streaming a file; close the flash player, then re-open the same song .. it thinks the file is complete though it isn't ..

so i'll have to send to the flash player the complete filesize, and have a routine check to see if it's equal (with 5% tolerance) ..

most of the problems i have a solution for, i just don't always have the time to code it ^^

Posted
Funky
Funky
#7

In stead of reffering to the ebel name of the track ( Wich in most cases will stay the same), it should refer to the name of the mp3 in your 'files' ( People 'usually' add a V1 or V2 etc..to the name of their most recent version)... Logically, you would have to 'overwrite' if it's the same filename... But it looks like you can upload different tracks with exactly the same filename to the server.... Now, of my new version I have two exactly the same versions, with the same name...And I dont even know which one exactly is linked to the track...I would have deleted the other one to save some server space --> OK, the number of hits tell me wichone is linked to...So I can delete the other one...

Posted
Administrator
Administrator
#8

Originally posted by : Funky And I dont even know which one exactly is linked to the track...I would have deleted the other one to save some server space --> OK, the number of hits tell me wichone is linked to...So I can delete the other one...

actually if you click on the file in your filemanager, it should say to which one it is linked ^^

Posted
Funky
Funky
#9

Originally posted by : ZARk most of the problems i have a solution for, i just don't always have the time to code it ^^

That's like the people who have splendid ideas bout podcasts and radioshows etc... Good ideas enough, but not that easy to find the time for it...At least I don't it...hav'n a full time stressy job & all..

Posted
Funky
Funky
#10

Originally posted by : ZARk actually if you click on the file in your filemanager, it should say to which one it is linked ^^

Yeah, that's what I thought also...BUT...Not the new version, nor the old version is linked to a song, if I may believe the info in the filemanager...

Actually, none of my songs have that info... Did a quick check, haven't checked them all....Description neither...Yea, i'm at work :P :)

Posted

Quick Reply

Beta