Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Strong etagging vs Nginx...

by André P.<app@thinkopensolutions.pt> - 10/13/2014 03:53:50
This should probably be moved to a Github issue for tracking.

That said, the current development version of Nginx already downgrades strong etags to weak ones[1], so if you just wait for the release and upgrade, it should work fine :)

[1] http://hg.nginx.org/nginx/rev/e491b26fa5a1

2014-10-10 20:11 GMT+01:00 Manuel Vázquez <manuel@merchise.org>:
Hi all,

I've recently found that when activating Nginx's gzip while proxing 
OpenERP, etags of JS and CSS were being removed.

The issue is that Nginx changing the octets being transmitted over the 
wire invalidates the strong etag, cause as per RFC 2616:

    A "strong entity tag" MAY be shared by two entities of a resource
    only if they are equivalent by octet equality.


Would you consider changing the addon/web/controllers/main.py to set a 
weak etag instead of a strong one?  What would be the implications?  
Would you consider introduce this change by providing a configuration 
option that'd turn on/off this behaviour?

Best regards,
Manuel.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Cumprimentos,


André Paramés

Developer

Miraflores Office Center,

Avenida das Túlipas, nº 6,

13ºA/B 1495-161 Algés

e. app@thinkopensolutions.pt

m. +351 960 029 663

t. +351 214 123 492

f. +351 214 123 493

O conteúdo desta mensagem de correio electrónico e seus anexos é confidencial e de uso reservado. Se não é o destinatário apague-a e informe o remetente. Esta mensagem é verificada pelo nosso sistema de anti-vírus, ainda assim não aceitamos qualquer responsabilidade por danos causados por vírus que possam estar contidos nesta mensagem. Para mais informações visite-nos em www.thinkopensolutions.com.

 Não imprima este email caso não seja estritamente necessário. A Terra agradece-lhe!