Problem with flash games cache

Asked

Viewed 85 times

1

I’m monitoring a site in a college project and I realized that, the moment I open a certain game, it gives an error, varying the error from game to game, some do not load, some take too long to load, another error when entering the game, like some bugs, but I realized that pressing Ctrl+F5 it stops with the mistakes, but sometimes I have to press Ctrl+F5 several times, and this way I would like to know if it is possible in html code to change this, causing it to eliminate this error or delete the cache.

1 answer

1


To disable browser caching, you can combine some meta tags:

<!-- 
   Informa ao navegador que não é pra armazenar nenhum tipo de cache 
   Teoricamente só essa opção já resolveria o problema
   Versão HTTP: 1.1
-->
<meta http-equiv="cache-control" content="no-cache" />
<!-- 
   Informa que o cache é pra expirar no dia 1 de janeiro de 1980  
   Ou seja, o cache já expirou e é pra deletar tudo
-->
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<!-- 
   Basicamente o mesmo que http-equiv:cache-control, exceto que  
   essa meta é para versão HTTP 1.0
-->
<meta http-equiv="pragma" content="no-cache" />

For more details about the meta tags, can read details at this link EN.

Original Response EN

Another problem may also be the connection speed, so the browser is not able to download all the files needed to run the application. And this couldn’t be solved with tags HTML, except that file compression would help.

  • I used the tags you gave me, but it didn’t solve here, so I hit Ctrl+F5 and back to work, but pressing only F5 it doesn’t run sometimes, I can’t tell you what the exact problem is.

  • Opa @Gabrielsilva, do the following, Inspecione the code using the inspector of some browser, and in the Network tab (Network in IE), check if there is any disparity of when it works and when it does not work, if you have any file that is not being loaded. Tools: Chrome, Firefox, IE

  • So when this occurs it says it is not being loaded the file. swf that is flash game, but after I give a Ctrl + F5 it works sometimes, sometimes not.

  • I did what you said and nothing appears on the network(I’m using Chrome) and on the console it gives error that the file is not being loaded.

  • @Gabrielsilva you have to open the inspector and then update the page.

  • In the network the only problem that is giving is that it is not appearing the image of Warning, but other than that is all correct, I can not find the explanation for this bug, because it works since it does not work flash game, I can not say very well

  • @Gabrielsilva has some link that we can see and test?

  • Yes Kadu, http://www.cienciaweb.com.br/site/gaming/

  • Then there’s the game bar on top, and then there’s a lot of bugging, and so, if you get into the math game and the circuitrohms might not happen there, but when it comes to playing it from the bug, it’s flashing everything, then you go from Ctrl + F5 a few times and it goes back to normal. On the console it gives the following error: Failed to load Resource: net:ERR_CONECTION_RESET and the game link appears next to it

  • @Gabrielsilva could not simulate the problem here, I tried several times and it always loads. The only problem I saw was an error in the console Cannot set property 'onclick' of null in the archive js.min.js line 6. As I said in the reply, can be problem of internet connection. Tests on other networks, with different providers and speed.

  • All games opened properly? None was loading without the need to press F5? the game of mathematics even after tightening in playing it is not giving problem? nor the of circuitrohmns?

  • Yes @Gabrielsilva, works correctly, I played a little of each and all worked.

  • Thank you very much for your help. is that I’ve already downloaded on a 90mb internet, a 15mb and a 1mb internet, and it doesn’t always work, depending on the place doesn’t work right, and that’s bad for the public, and when the error and I use the inspect element it gives that error quoted above on the console and appears the game link, but thank you.

Show 8 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.