FRHong

更新背景 - 想请教一下是否有延时

  •  
  •   FRHong · Dec 20, 2010 · 3556 views
    This topic created in 5623 days ago, the information mentioned may be changed or developed.
    刚刚想换一张背景,于是把原来的 bg.png 更新之后 deploy 上去。可是不知道为什么其它文件都更新了,就是这个 bg.png 没有更新。无论怎么 F5 都更新不了。

    我看了根目录的 css.py 这个文件。不知道是不是跟下面这段有关?


    class CSSHandler(webapp.RequestHandler):
    def get(self, theme):
    template_values = {}
    themes = os.listdir(os.path.join(os.path.dirname(__file__), 'tpl', 'themes'))
    if theme in themes:
    path = os.path.join(os.path.dirname(__file__), 'tpl', 'themes', theme, 'style.css')
    else:
    path = os.path.join(os.path.dirname(__file__), 'tpl', 'themes', 'default', 'style.css')
    output = template.render(path, template_values)
    expires_date = datetime.datetime.utcnow() + datetime.timedelta(days=7)
    expires_str = expires_date.strftime("%d %b %Y %H:%M:%S GMT")
    self.response.headers.add_header("Expires", expires_str)
    self.response.headers['Cache-Control'] = 'max-age=120, must-revalidate'
    self.response.headers['Content-type'] = 'text/css;charset=UTF-8'
    self.response.out.write(output)

    ===
    谢谢!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1399 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:05 · PVG 01:05 · LAX 10:05 · JFK 13:05
    ♥ Do have faith in what you're doing.