Hi all, This is the first time I make a submition to the list. For the last year and a half I´ve been using seaside in squeak, and built a decision engine application. I´ve been experiencing the following: all the gifs appeare mixed up. I cache the gifs, putting all the gifs in ScriptingSystem formDictionary, I store the byteArray directly. I realized that the application has been using offline content stored in the temporary files folder. Then, I change Explorer setting to check the version of a page, every time the page is visited (the previous setting was "automatic"). But I continued experiencing the problem. Then I realized that the key generated in WAExternalID by means of: initialize GeneratorMutex critical: [1 to: self size do: [:i | self at: i put: ((($a to: $z), ($A to: $Z)) atRandom: Generator) asInteger]] was exactly the same as one located in the temporary files. I also saw that WADocumentHandler>>response sets an expiration time to year 2095. response | response | response _ WAResponse new. response contents: self mimeDocument contentStream text. response contentType: (mimeType ifNil: [self mimeDocument contentType]). response headerAt: 'Expires' put: 'Thu, 01 Jan 2095 12:00:00 GMT'. fileName ifNotNil: [response headerAt: 'Content-Disposition' put: 'attachment; filename=' , fileName]. ^ response Now, I´m attacking the problem in the following ways: - changes the web browser setting to review page version every time is visited. - changed expiration time to a shorter time. - changed the way
WAExternalID is generated, trying to make it more random. Does anybody has another ideas ?, Am I facing the problem correctly ?, Thanks in advance, I´d like to add that Seside is an amazing and productive framework. Felipe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2006/10/25, saza solutions <[hidden email]>:
> Hi all, > This is the first time I make a submition to the list. > > For the last year and a half I´ve been using seaside in squeak, and built a > decision engine application. > > I´ve been experiencing the following: all the gifs appeare mixed up. > > I cache the gifs, putting all the gifs in ScriptingSystem formDictionary, I > store the byteArray directly. > > I realized that the application has been using offline content stored in the > temporary files folder. Then, I change Explorer setting to check the version > of a page, every time the page is visited (the previous setting was > "automatic"). But I continued experiencing the problem. > > Then I realized that the key generated in WAExternalID by means of: > initialize > GeneratorMutex critical: > [1 to: self size do: [:i | self at: i put: ((($a to: $z), ($A to: $Z)) > atRandom: Generator) asInteger]] > > was exactly the same as one located in the temporary files. > > I also saw that WADocumentHandler>>response sets an expiration time to year > 2095. > > response > | response | > response _ WAResponse new. > response contents: self mimeDocument contentStream text. > response contentType: (mimeType ifNil: [self mimeDocument contentType]). > response headerAt: 'Expires' put: 'Thu, 01 Jan 2095 12:00:00 GMT'. > fileName ifNotNil: > [response headerAt: 'Content-Disposition' put: 'attachment; filename=' , > fileName]. > ^ response > > Now, I´m attacking the problem in the following ways: > - changes the web browser setting to review page version every time is > visited. > - changed expiration time to a shorter time. > - changed the way WAExternalID is generated, trying to make it more random. > Does anybody has another ideas ?, Am I facing the problem correctly ?, > > Thanks in advance, > > I´d like to add that Seside is an amazing and productive framework. > > Felipe Serve dynamically generated files? Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
The static content, the gifs, change, that is, for instance: where I must have an edit gif, appears anything else, for instance a delete gif. What apperars mixed-up in the web brwoser are the gif, the server static files, which I cache its byteArrays in ScriptingSystem formDictionary. For instance, by means of "toggle halos", and "S" I can see the html generated by the server, this is a piece of html: <td class="row"> <a href="...bCzEZZYt"> <img border="0" alt="" src="/seaside/DES?_s=VmTXqtlZoqwPFQvv" /> </a> </td> "/seaside/DES?_s=VmTXqtlZoqwPFQvv" referes to the gif, for instance to the gifA, and the gifA is shown. Somehow, the same ?_s=VmTXqtlZoqwPFQvv after some time referes to
another gif, a gifB. If I click the web brower refresh button, or delete all off-line content of temporary internet files every time or -as I´m trying now- change the expiration time to a shorter time, It seems I´m avoiding this... but I´m not sure. thank you, Felipe Philippe Marschall <[hidden email]> escribió: 2006/10/25, saza solutions : _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Have you tried stuff like FileLibrary? That's much better suited for
serving static content. Philippe 2006/10/26, saza solutions <[hidden email]>: > The static content, the gifs, change, that is, for instance: where I must > have an edit gif, appears anything else, for instance a delete gif. > > What apperars mixed-up in the web brwoser are the gif, the server static > files, which I cache its byteArrays in ScriptingSystem formDictionary. > > For instance, by means of "toggle halos", and "S" I can see the html > generated by the server, this is a piece of html: > > <td class="row"> > <a href="...bCzEZZYt"> > <img border="0" alt="" > src="/seaside/DES?_s=VmTXqtlZoqwPFQvv" /> > </a> > </td> > > "/seaside/DES?_s=VmTXqtlZoqwPFQvv" referes to the gif, for > instance to the gifA, and the gifA is shown. > > Somehow, the same ?_s=VmTXqtlZoqwPFQvv after some time referes to another > gif, a gifB. If I click the web brower refresh button, or delete all > off-line content of temporary internet files every time or -as I´m trying > now- change the expiration time to a shorter time, It seems I´m avoiding > this... but I´m not sure. > > thank you, > > Felipe > > > Philippe Marschall <[hidden email]> escribió: > 2006/10/25, saza solutions : > > > Hi all, > > This is the first time I make a submition to the list. > > > > For the last year and a half I´ve been using seaside in squeak, and built > a > > decision engine application. > > > > I´ve been experiencing the following: all the gifs appeare mixed up. > > > > I cache the gifs, putting all the gifs in ScriptingSystem formDictionary, > I > > store the byteArray directly. > > > > I realized that the application has been using offline content stored in > the > > temporary files folder. Then, I change Explorer setting to check the > version > > of a page, every time the page is visited (the previous setting was > > "automatic"). But I continued experiencing the problem. > > > > Then I realized that the key generated in WAExternalID by means of: > > initialize > > GeneratorMutex critical: > > [1 to: self size do: [:i | self at: i put: ((($a to: $z), ($A to: $Z)) > > atRandom: Generator) asInteger]] > > > > was exactly the same as one located in the temporary files. > > > > I also saw that WADocumentHandler>>response sets an expiration time to > year > > 2095. > > > > response > > | response | > > response _ WAResponse new. > > response contents: self mimeDocument contentStream text. > > response contentType: (mimeType ifNil: [self mimeDocument contentType]). > > response headerAt: 'Expires' put: 'Thu, 01 Jan 2095 12:00:00 GMT'. > > fileName ifNotNil: > > [response headerAt: 'Content-Disposition' put: 'attachment; filename=' , > > fileName]. > > ^ response > > > > Now, I´m attacking the problem in the following ways: > > - changes the web browser setting to review page version every time is > > visited. > > - changed expiration time to a shorter time. > > - changed the way WAExternalID is generated, trying to make it more > random. > > Does anybody has another ideas ?, Am I facing the problem correctly ?, > > > > Thanks in advance, > > > > I´d like to add that Seside is an amazing and productive framework. > > > > Felipe > > Whats the bigger problem you're trying to solve? Serve static files? > Serve dynamically generated files? > > Philippe > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |