Ë
    ¹ûàgP  ã                   óF   — d dl mZmZmZ d dlmZ d dlmZ  G d„ de«      Zy)é    )Úcc_delim_reÚget_conditional_responseÚset_response_etag)ÚMiddlewareMixin)Úparse_http_date_safec                   ó   — e Zd ZdZd„ Zd„ Zy)ÚConditionalGetMiddlewarezé
    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                 ó
  — |j                   dk7  r|S | j                  |«      r|j                  d«      st        |«       |j	                  d«      }|j	                  d«      }|xr t        |«      }|s|rt        ||||¬«      S |S )NÚGETÚETagzLast-Modified)ÚetagÚlast_modifiedÚresponse)ÚmethodÚ
needs_etagÚ
has_headerr   Úgetr   r   )ÚselfÚrequestr   r   r   s        úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django/middleware/http.pyÚprocess_responsez)ConditionalGetMiddleware.process_response   s‡   € ð �>‰>˜UÒ"ØˆOà�?‰?˜8Ô$¨X×-@Ñ-@ÀÔ-HÜ˜hÔ'à�|‰|˜FÓ#ˆØ Ÿ™ _Ó5ˆØ%ÒMÔ*>¸}Ó*Mˆá‘=Ü+ØØØ+Ø!ô	ð ð ˆó    c                 óp   — t        j                  |j                  dd«      «      }t        d„ |D «       «      S )z:Return True if an ETag header should be added to response.zCache-ControlÚ c              3   óB   K  — | ]  }|j                  «       d k7  –— Œ y­w)zno-storeN)Úlower)Ú.0Úheaders     r   ú	<genexpr>z6ConditionalGetMiddleware.needs_etag.<locals>.<genexpr>(   s   è ø€ ÒT°F�6—<‘<“> ZÕ/ÑTùs   ‚)r   Úsplitr   Úall)r   r   Úcache_control_headerss      r   r   z#ConditionalGetMiddleware.needs_etag%   s1   € ä +× 1Ñ 1°(·,±,¸ÐPRÓ2SÓ TÐÜÑTÐ>SÔTÓTÐTr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   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>r+      s   ðß WÑ WÝ 4Ý 2ô"U˜õ "Ur   