Hi All,
When i update a SCORM package i.e. upload a new scorm zip file then after save and returning to the course when i play the course, it still plays the old one.
When i clear the browser cache and history then it plays the updated one.
Please help me in this regard, how to resolve this problem so that updated zip can be viewed without cache clerance.
Thanks,
Garima
Cache issue: On Updating the scorm zip file, still plays the old one,
by Garima Sharma -
Number of replies: 11
In reply to Garima Sharma
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
I'd just give the updated one a new name, link to the new name and delete the original.
In reply to Garima Sharma
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Rob Womack -
I use a timestamp in the title to make sure that the flash file is not cached (i.e. module1-2009-08-26-14-46) and when sorted by descending name the most recent file is always at the top.
In reply to Rob Womack
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Garima Sharma -
What to do , incase i donot want to change the title of the course or delete the previous one.
Problem is i just want to only update the zip file, when i does so it plays old one if i don't clear the cache.
Regards,
Garima
Problem is i just want to only update the zip file, when i does so it plays old one if i don't clear the cache.
Regards,
Garima
In reply to Garima Sharma
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Andy Freed -
Hi Garima,
I just posted a suggestion to a different thread that may help:
http://moodle.org/mod/forum/discuss.php?d=130500#p573766
I just posted a suggestion to a different thread that may help:
http://moodle.org/mod/forum/discuss.php?d=130500#p573766
In reply to Andy Freed
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Matt Bury -
Hi Garima,
I can see your problem: you can't ask users to go through complicated cache clearing tasks if you update a SCORM package that they've already downloaded once. This is true of Flash apps in general.
There are suggested solutions of including "nocache" code and such on the web page in question but I haven't found one that works all the time in the most popular browser yet. The typical solution is to add a query string to the end of the file(s) in question. Something like:
http://mymoodle.com/path/to/swf/app.swf?20090827164730
You can define the query string as anything you like; serial number, date and time, names of your favourite pop stars, etc. but the ? is necessary. You can also use it for updating any files like XML, JPEG, etc.
However, while testing this may return an error in your Flash authoring IDE so it gets difficult and fiddly to keep changing it between testing on the IDE and on-line. Rest assured that once you've uploaded it with the query string it'll work as expected.
I've built this function into the SWF Activity Module if you want to have a look at the code: http://code.google.com/p/moodle-swf/
AFAIK, SCORM won't let you automatically generate the query string you need (you need PHP from the back end to do that), so you'll have to update it manually each time you upload and test. Perhaps you could include some JavaScript to tag a random query string on each time it loads. The SCORM module really should have something like this built in. I don't have much experience of using SCORM in Moodle so perhaps one of the core developers can tell you if this is the case or not.
I can see your problem: you can't ask users to go through complicated cache clearing tasks if you update a SCORM package that they've already downloaded once. This is true of Flash apps in general.
There are suggested solutions of including "nocache" code and such on the web page in question but I haven't found one that works all the time in the most popular browser yet. The typical solution is to add a query string to the end of the file(s) in question. Something like:
http://mymoodle.com/path/to/swf/app.swf?20090827164730
You can define the query string as anything you like; serial number, date and time, names of your favourite pop stars, etc. but the ? is necessary. You can also use it for updating any files like XML, JPEG, etc.
However, while testing this may return an error in your Flash authoring IDE so it gets difficult and fiddly to keep changing it between testing on the IDE and on-line. Rest assured that once you've uploaded it with the query string it'll work as expected.
I've built this function into the SWF Activity Module if you want to have a look at the code: http://code.google.com/p/moodle-swf/
AFAIK, SCORM won't let you automatically generate the query string you need (you need PHP from the back end to do that), so you'll have to update it manually each time you upload and test. Perhaps you could include some JavaScript to tag a random query string on each time it loads. The SCORM module really should have something like this built in. I don't have much experience of using SCORM in Moodle so perhaps one of the core developers can tell you if this is the case or not.
In reply to Matt Bury
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Garima Sharma -
In reply to Garima Sharma
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Ron Meske -
Hi Garima,
This is one of the most frustrating things about working with browsers as you have found. Can you provide the following information:
This is one of the most frustrating things about working with browsers as you have found. Can you provide the following information:
- What software are you using to create your SCORM course?
- How many files make up the course?
- How often do you have to update the course?
- How much control do you have of the computers that are being used to access the course?
In reply to Garima Sharma
Re: Cache issue: On Updating the scorm zip file, still plays the old one,
by Matt Bury -
Hi Garima,
"I tried to add extra query string after the URL, but it also didn't worked."
Where did you add the query strings? As far as browsers are concerned every file can be cached so for each file that gets downloaded in a package, you have to add a query string to it. Even if you rename the SCORM zip file, it's still possible that the browser will use the previously cached files. It depends on how the SCORM module handles the unzipping process.
Like I said, it's a pain to have to do this manually and it really should be taken care of by the SCORM module.
"I tried to add extra query string after the URL, but it also didn't worked."
Where did you add the query strings? As far as browsers are concerned every file can be cached so for each file that gets downloaded in a package, you have to add a query string to it. Even if you rename the SCORM zip file, it's still possible that the browser will use the previously cached files. It depends on how the SCORM module handles the unzipping process.
Like I said, it's a pain to have to do this manually and it really should be taken care of by the SCORM module.
hey guys i really need a help i am uploading a scorm file as lesson not as assignment, when i click on the compressed file it opens a dialog for saving this compressed file, doesnt open the html page, though if i uploaded the same file as assignment and click on the link it opens normally, this problem only happen if it was a lesson, please advise, Thanks.
Have you read through the docs on adding SCORM content? Neither the assignment module nor the lesson module support SCORM. Only the SCORM module and the SCORM course format.
http://docs.moodle.org/en/Adding/editing_a_SCORM
http://docs.moodle.org/en/Adding/editing_a_SCORM
I strongly advise you to use a more descriptive message title than Help.