HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/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