ó
    ½RjP  ã                   óF   • S SK JrJrJr  S SKJr  S SKJr   " S S\5      rg)é    )Úcc_delim_reÚget_conditional_responseÚset_response_etag)ÚMiddlewareMixin)Úparse_http_date_safec                   ó$   • \ rS rSrSrS rS rSrg)ÚConditionalGetMiddlewareé   zÙ
Handle conditional GET operations. If the response has an ETag or
Last-Modified header and the request has If-None-Match or If-Modified-Since,
replace the response with HttpNotModified. Add an ETag header if needed.
c                 ó8  • UR                   S:w  a  U$ U R                  U5      (       a!  UR                  S5      (       d  [        U5        UR	                  S5      nUR	                  S5      nU=(       a    [        U5      nU(       d  U(       a  [        UUUUS9$ U$ )NÚGETÚETagzLast-Modified)ÚetagÚlast_modifiedÚresponse)ÚmethodÚ
needs_etagÚ
has_headerr   Úgetr   r   )ÚselfÚrequestr   r   r   s        ÚBD:\diplom_project\venv\Lib\site-packages\django/middleware/http.pyÚprocess_responseÚ)ConditionalGetMiddleware.process_response   s�   € ð �>‰>˜UÓ"ØˆOà�?‰?˜8×$Ñ$¨X×-@Ñ-@À×-HÑ-HÜ˜hÔ'à�|‰|˜FÓ#ˆØ Ÿ™ _Ó5ˆØ%×MÔ*>¸}Ó*Mˆæ–=Ü+ØØØ+Ø!ñ	ð ð ˆó    c                 ór   • [         R                  " UR                  SS5      5      n[        S U 5       5      $ )z:Return True if an ETag header should be added to response.zCache-ControlÚ c              3   óF   #   • U  H  oR                  5       S :g  v •  M     g7f)zno-storeN)Úlower)Ú.0Úheaders     r   Ú	<genexpr>Ú6ConditionalGetMiddleware.needs_etag.<locals>.<genexpr>(   s   é € ÐTÒ>S°F—<‘<“> ZÖ/Ò>Sùs   ‚!)r   Úsplitr   Úall)r   r   Úcache_control_headerss      r   r   Ú#ConditionalGetMiddleware.needs_etag%   s1   € ä +× 1Ò 1°(·,±,¸ÐPRÓ2SÓ TÐÜÑTÑ>SÓTÓTÐTr   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__r'   r   r   r	   r	      s   † ñòõ0Ur   r	   N)	Údjango.utils.cacher   r   r   Údjango.utils.deprecationr   Údjango.utils.httpr   r	   r'   r   r   Ú<module>r1      s   ðß WÑ WÝ 4Ý 2ô"U˜õ "Ur   