Commit 6ab8e6d298c3efd15d76ab032f7c2fe1a044b3cb

Authored by Carlos Vieira
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 from flask import Flask, url_for, render_template, request, Response, make_response 1 from flask import Flask, url_for, render_template, request, Response, make_response
2 from config import Config 2 from config import Config
3 -import hashlib, zlib 3 +import hashlib, zlib, datetime
4 4
5 # Criar Key e certificado 5 # Criar Key e certificado
6 # openssl genrsa 1024 > ssl.key 6 # openssl genrsa 1024 > ssl.key
@@ -51,7 +51,7 @@ def barra(): @@ -51,7 +51,7 @@ def barra():
51 resposta.set_etag(etag) 51 resposta.set_etag(etag)
52 resposta.headers['Content-type'] = 'application/x-javascript' 52 resposta.headers['Content-type'] = 'application/x-javascript'
53 resposta.headers['Cache-control'] = 'public, max-age: 31536000' #1 ano 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 return resposta 55 return resposta
56 56
57 if __name__ == '__main__': 57 if __name__ == '__main__':
@@ -20,4 +20,4 @@ GIT_SSL_NO_VERIFY=true git clone http://portal.softwarepublico.gov.br/gitlab/gov @@ -20,4 +20,4 @@ GIT_SSL_NO_VERIFY=true git clone http://portal.softwarepublico.gov.br/gitlab/gov
20 20
21 cd barra-govbr 21 cd barra-govbr
22 22
23 -make run 23 +PROFILE=default make run