Bypass local user from Global .htaccess
Is there a way that we bypass a local user from global .htaccess file. Actually we have enable caching on our server but some of the users want to check their site without any caching.
-
Hello :) Which specific entry in the .htaccess file are you attempting to add? Have you tried adding the entry to see if it fails? Thank you. 0 -
What type of caching mechanism are you using ? Is it nginx, php or other proxy ? 0 -
We are using php mechanism. Please find below code in our .htaccess file which is placed in our home partition: # BEGIN Cache-Control Headers Header set Cache-Control "max-age=2592000, public" Header set Cache-Control "max-age=604800, public" Header set Cache-Control "max-age=216000, private" Header set Cache-Control "max-age=600, private, must-revalidate" # END Cache-Control Headers mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* Header unset ETag FileETag None Header unset Last-Modified Header set Connection keep-alive
What if a user wants to bypass a certain domain? Best Regards, Rizwan.0 -
Go through this article : Configuring .htaccess to ignore specific subfolders | Drupal.org 0
Please sign in to leave a comment.
Comments
4 comments