Jump to content
Fórum Script Brasil
  • 0

Limpeza de cache com PHP


Question

2 answers to this question

Recommended Posts

  • 0

Bom dia amigos,

Após uma noite de sono mal dormida, resolvi o problema da seguinte maneira:

No htaccess do Apache, descomentei as linhas:

LoadModule headers_module modules/mod_headers.so

LoadModule expires_module modules/mod_expires.so

E por final inclui as linhas:

<FilesMatch "\.swf$">

ExpiresActive Off

Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"

Header set Pragma "no-cache"

Header append Vary User-Agent env=!dont-vary

Header append Vary Accept-Encoding

Header unset Etag

FileETag None

Header unset Last-Modified

</FilesMatch>

<filesMatch "\.xml$">

ExpiresActive Off

Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"

Header set Pragma "no-cache"

Header append Vary User-Agent env=!dont-vary

Header append Vary Accept-Encoding

Header unset Etag

FileETag None

Header unset Last-Modified

</filesMatch>

Ou seja;

Disse ao servidor Apache para que não armazene as extenções swf e xml nos temporários.

Mas se quiserem refinar as informações quardadas em cache, consulte Estratégias para otimizar a velocidade de carregamento .

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      149296
    • Total Posts
      645693
×
×
  • Create New...