Commit 6ab8e6d298c3efd15d76ab032f7c2fe1a044b3cb
1 parent
5e97b5e9
Exists in
master
Adicionando profile e servindo o javascript
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/barrabrasil.py
| 1 | 1 | from flask import Flask, url_for, render_template, request, Response, make_response |
| 2 | 2 | from config import Config |
| 3 | -import hashlib, zlib | |
| 3 | +import hashlib, zlib, datetime | |
| 4 | 4 | |
| 5 | 5 | # Criar Key e certificado |
| 6 | 6 | # openssl genrsa 1024 > ssl.key |
| ... | ... | @@ -51,7 +51,7 @@ def barra(): |
| 51 | 51 | resposta.set_etag(etag) |
| 52 | 52 | resposta.headers['Content-type'] = 'application/x-javascript' |
| 53 | 53 | resposta.headers['Cache-control'] = 'public, max-age: 31536000' #1 ano |
| 54 | - resposta.headers['Last-Modified'] = data | |
| 54 | + resposta.headers['Last-Modified'] = datetime.datetime.now() | |
| 55 | 55 | return resposta |
| 56 | 56 | |
| 57 | 57 | if __name__ == '__main__': | ... | ... |
provision.sh