o
    hG                     @   sH   d dl mZ d dlmZ d dlmZ d dlZeeddddd	 ZdS )
    )HttpResponse)require_GET)cache_controlNiQ T)max_agepublicc                 C   sr   t jt jt jtdd}t|d}| }W d    n1 s$w   Y  t|dd}d|d< d|d	< |S )
Nstaticz
robots.txtrz
text/plain)content_typeallzX-Robots-Tagzpublic, max-age=86400zCache-Control)ospathjoindirname__file__openreadr   )requestrobots_file_pathfcontentresponse r   (/var/www/html/ndineBlogger/main/views.py
robots_txt   s    
r   )django.httpr   django.views.decorators.httpr   django.views.decorators.cacher   r   r   r   r   r   r   <module>   s    
