Shoutbox

Dreaded Internet Cache - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Dreaded Internet Cache (/showthread.php?tid=65647)

Dreaded Internet Cache by Shondoit on 08-31-2006 at 03:33 PM

Most people are having trouble when the download updates for certain scripts.
If the file is still in the internet cache, no new version is downloaded...

Simple solution: Add the current time to the URL, like http://shoutbox.menthix.net/attachment.php?pid=72...1/08/2006-17:30:32
Or just the numbers like: http://shoutbox.menthix.net/attachment.php?pid=72...ime=31082006173032
This way the browser thinks it is a different file, and will download the latest version, it should be easy to implement, and will reduce a lot of miscomunication "It still doesn't work:("

(Y) Would be a great help


RE: Dreaded Internet Cache by markee on 08-31-2006 at 03:44 PM

Or developers can add a version number at the end of the name so that the file is easily distinguishable from other versions and can be seen to be the update.  I don't mind your suggestion though.


RE: Dreaded Internet Cache by Shondoit on 08-31-2006 at 04:26 PM

The version needs to be changed manually I presume?

Some people could forget it... But it could be a good alternative, maybe it could show the version number underneath the download link


RE: Dreaded Internet Cache by saralk on 08-31-2006 at 05:14 PM

quote:
Originally posted by markee
Or developers can add a version number at the end of the name so that the file is easily distinguishable from other versions and can be seen to be the update.  I don't mind your suggestion though.

he's talking about changing the attached file, which doesn't change the address.
RE: Dreaded Internet Cache by Shondoit on 08-31-2006 at 05:19 PM

Yes I did, I misread his post, and thought he ment http://www.blah.com/link?version=1.01


RE: Dreaded Internet Cache by Spunky on 09-05-2006 at 10:40 PM

This is a pretty simple solution. There was a function (can't remember the language) called CacheBuster that used the same principle. I also used it when I made a flash site that displays WLMs details as my DP wasn't updating. Just add random numbers after filename (and ? as well) :p


RE: Dreaded Internet Cache by haydos on 09-06-2006 at 03:44 AM

I spoke to WDZ about this possible solution to the caching in the shoutbox, and he said he wouldn't be implementing this idea because he wants some things (such as images, which many people use as attachments) to be cached. Otherwise it's really a waste of bandwidth when people are constantly re-downloading images.

I guess it is possible to only implement this idea for files ending in specific filetypes... but don't bet the house on it because it is WDZ after all :P


RE: Dreaded Internet Cache by markee on 09-06-2006 at 03:49 AM

I think the URL for the attchment should include the name of the file so as you can change the filename, in turn changing the URL and there is no worry about the cache (apart from if you are downloading a file which you have already downloaded previously).  An example would be like with my gradient script, instead of http://shoutbox.menthix.net/attachment.php?pid=695421 it would be http://shoutbox.menthix.net/attachment.php?pid=69...radient_v3.00.plsc or something simular.


RE: Dreaded Internet Cache by WDZ on 09-06-2006 at 03:53 AM

Well, this shouldn't be a problem in MyBB 1.2 because posts can have multiple attachments, and each attachment has its own ID.


RE: Dreaded Internet Cache by NanaFreak on 09-06-2006 at 04:10 AM

this would be great for the people that dont change there file name (timezone) because i hate having to empty  the cache every time i go to download it


RE: Dreaded Internet Cache by Shondoit on 09-06-2006 at 04:55 AM

And how about an option to have a random ID on it?
Like you can check if it should cache or not...

Or maybe change the random Id when you replace the attachment...
The original download link would still be valid, but the new one replaces it in the cache


RE: Dreaded Internet Cache by Spunky on 09-20-2006 at 12:17 AM

quote:
Originally posted by WDZ
Well, this shouldn't be a problem in MyBB 1.2 because posts can have multiple attachments, and each attachment has its own ID.

Then why do we only get the option to add ONE attachment (or replace the last one)?
RE: Dreaded Internet Cache by Ahmad on 09-20-2006 at 12:19 AM

Because this board isn't running version 1.2 yet.


RE: Dreaded Internet Cache by MeEtc on 09-20-2006 at 12:49 PM

I rarely have this problem since my cache is set really low. I think it's set at 10 MB? That way, it cleans itself out regularly after deleting the old stuff