https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/middleware/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/middleware/__pycache__/http.cpython-310.pyc
o

ʎ�_X�@s@ddlmZmZmZddlmZddlmZGdd�de�ZdS)�)�cc_delim_re�get_conditional_response�set_response_etag)�MiddlewareMixin)�parse_http_date_safec@s eZdZdZdd�Zdd�ZdS)�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.
    cCsf|jdkr|S|�|�r|�d�st|�|�d�}|�d�}|o$t|�}|s)|r1t||||d�S|S)N�GET�ETagz
Last-Modified)�etag�
last_modified�response)�method�
needs_etag�
has_headerr�getrr)�self�requestrr
r�r�8/usr/lib/python3/dist-packages/django/middleware/http.py�process_responses


�z)ConditionalGetMiddleware.process_responsecCs$t�|�dd��}tdd�|D��S)z:Return True if an ETag header should be added to response.z
Cache-Control�css�|]	}|��dkVqdS)zno-storeN)�lower)�.0�headerrrr�	<genexpr>)s�z6ConditionalGetMiddleware.needs_etag.<locals>.<genexpr>)r�splitr�all)rr�cache_control_headersrrrr&sz#ConditionalGetMiddleware.needs_etagN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrN)	�django.utils.cacherrr�django.utils.deprecationr�django.utils.httprrrrrr�<module>s

https://t.me/RX1948 - 2025