Search Results
Dec 12, 2006 GET /i/yahoo.gif HTTP/1.1 Host:us.yimg.com If-Modified-Since:Tue, 12 Dec 2006 03:03:59 GMT If-None-Match:"10c24bc-4ab-457e1c1f"HTTP/1.1
If you remove the Last-Modified and ETag header, you will totally eliminate If-Modified-Since and If-None-Match requests and their 304 Not Modified
If youve read any other articles on AskApache you can see a certain obsession . and resource robbing IfModifiedSince requests You only need Apache with
Redirects Redirect page1.html page2.html If someone were to visit Since then he gets regular questions and requests for help on proxying with Apache.
If not we return a 'HTTP/1.0 304 Not Modified'status and exit the script. $last
SetEnvIfNoCase ^If-Modified-Since$ "(.+)"HTTP_IF_MODIFIED_SINCE=$1 SetEnvIfNoCase ^If-None-Match$ "(.+)"HTTP_IF_NONE_MATCH=$1 SetEnvIfNoCase
Therefore, every time a browser loads a page that includes the ga.js file from google, it has to make a 304 If-Modified-Since request to see if the file has
Mar 20, 2007 Take a look at the source for this page if you want to see what is to an If-Modified-Since header correctly with a 304 Not Modified
Jan 5, 2008 If-Modified-Since, Allows a 304 Not Modified to be returned, If-Modified-Since:Sat, 05 Jan 2007 09:26:12 GMT
Oct 20, 2008 control system to force visitors to use updated files eliminates millions of bandwidth and resource robbing If-Modified-Since requests.
Indicates the resource has not been modified since last requested Typically the HTTP client provides a header like the IfModifiedSince header to provide a
304 If-Modified-Since was designed to reduce bandwidth for the server and for the client by not having to send the file if it has not been modified.
cache, caching, modified, if-modified-since, date, header, headers, mod_expires, mod_headers, http, cached, apache, speed, optimized, optimize, proxy, revalidate, private
If youve read any other articles on AskApache you can see a certain . millions of bandwidth and resource robbing IfModifiedSince requests You only need
If you can't do that, you'll need to make the script generate a validator, and then respond to If-Modified-Since and/or If-None-Match requests.
millions of bandwidth and resource robbing IfModifiedSince requests . Rigging the DreamHost Site of the Month Contest Since AskApachecom was
SetEnvIfNoCase ^IfModifiedSince+ HTTP_IF_MODIFIED_SINCE$1 SetEnvIfNoCase ^IfNoneMatch+ HTTP_IF_NONE_MATCH$1 SetEnvIfNoCase ^CacheControl+
If I was only allowed to have one plugin for my WordPress blogs, hands-down I'd caching trick to eliminate millions of 304 If Modified Since requests
If this brigade contains EOS, either stop or remove it. .. "If-Match") || !strcasecmp(headers_in[counter].key, "If-Modified-Since")
Use CURL_TIMECOND_IFMODSINCE to return the page only if it has been modified since the time specified in CURLOPT_TIMEVALUE. If it hasn't been modified,
Use this to designate that a page hasn't been modified since the user's last request (status code If you'd like to add the code for Django/Python it is:www.askapache.com/;list-of-methods-to-redirect-users-to-different-page.html
If the RequestURI is an asterisk* the OPTIONS request is intended to apply to the server in general rather than to a specific resource Since a server's
You need an .htaccess that is created/modified by wordpress via the If you've had a feed for any length of time, your readers are using your current feed's [NC] # Any specification of a post ID we skip since it's post specific
If the resource could not be created or modified with the Request-URI, 14.45) is of particular interest, since it acts as a trace of the request chain. www.askapache.com/;27-request-methods-for-use-with-apache-and-rewritecond-and-htaccess.html
Modified by Alexei Kosut to support the following constructs * (server . Since I * know of no protocols that are a single letter, ignore * a :as the If we are at the * last entry, then use the filename generated (if there is
Second, since caching open handles does not consume significant resources, To reiterate that point:if the files are modified *in place* without
Since the redirection might be altered on occasion, the client SHOULD 304 Not Modified. If the client has performed a conditional GET request and access
If so, we can dir merge later, trusing new->real * and just . char *ret;int status; if ((ret of '%s'for ""URI '%s'modified to '%s'", orig_target, r->uri, ret);} if
This will still work if you have file names such as example.en.html or . The problem is that I can't get to php.ini since I'm on a shared host (dreamhost) Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires
But what if you directly request site.com/cgi-bin/php.ini or Since we now know that we only want requests that have the REDIRECT_STATUS environment .. Tips:Remove Last-Modified Header ·Rewrite underscores to hyphens for SEO URL
echomsg:(since 2.1) The value is a message that is sent back to the client if the echo set var="modified"value="$LAST_MODIFIED"--><! The test condition is evaluated and if the result is true, then the text until the next
If yes:* deliver the content by installing the CACHE_OUT filter. . exposes a bug in mem_cache, since it does not * restore the status into it's handle. . reason = "HTTP Status 304 Not Modified";} else if (r->status == HTTP_OK
Everyone else will be stopped at the Apache login screen, and if they Thanks for the snippets, I pasted them into my blog since I tend to forget them very htaccess Tricks for Webmasters ·Speed Tips:Remove Last-Modified Header
Since these are unique to you specifically and hard to spoof, use them to turn The ARG_url line says that if those words appear in the form field with the . I go to restart the server after .htaccess file has been modified and it
So my browser makes a request for the apache-0031.css file, and IF the request originates from Furthermore, since WP theme files usually reside in the Speed Tips:Remove Last-Modified Header ·Elite Log File Scrolling with Color www.askapache.com/;htaccess-trick-to-show-alternate-css-file-based-on-ip.html
If you are worried about your WordPress blog getting hacked, this can help immensely. AskApache Password Protect since based on self-tests that this plugin .. both at the site and root levels — but they aren't modified at all.
Since this can have important effects on how configuration directives are If multiple sections apply to the same directory they are processed in the Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires
CSS and xhtml I've learned in great detail since 03. . these devices and provide them with modified files, effectively taking over the device. I don't care if you are physically and mentally handicapped or even completely just a
Else if a valid If-Unmodified-Since request-header field was given. * AND the requested resource has been modified since the time * specified in this field,
ErrorDocument 403 /403.html RewriteEngine On RewriteBase / # IF THE UA .. all of it despite the mentioning of “alternate” since I spotted that they differ. . PHP htaccess tips and tricks ·Speed Tips:Remove Last-Modified Header
about what I was doing with fsockopen, and I've been improving on that example ever since. . 22 Jul 2009 06:29:58 GMT Server:Apache Last-Modified:Wed, . Its worth a look, even if you need a couple of days to get you started.
What if a user types in https://secureurl.com:80 There are a lot of these .. with Internet Explorer, since the site tries to serve up the page via HTTPS. . htaccess Tricks for Webmasters ·Speed Tips:Remove Last-Modified Header
Modified wp_cache_is_rejected function Since if using pretty urls are being used everything goes to index.php, will it really disable just a home page?
Hi, don't know if is old news or not, for me W3 Total Cache is an alternative, personally i Any chance of an update/review since this post? . Speed Tips:Remove Last-Modified Header ·Vetted – Top 3 WordPress Speed Plugins
If you are an incredibly savvy and experienced web developer, . using this technique ever since I used to get more then 10000 hits a day. dreamhost Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires Headers
global file, since ## they are potentially dangerous to "normal"users. This can also be used to see if competitors web sites are feeding google spider food. Speed Tips:Remove Last-Modified Header ·Multiply your DreamHost
Apr 8, 2009 This cronjob runs every 30 minutes, copying all modified files from my If you like candy that is.. It's called each time anything logs into . ssh, which is what I'm doing, since the algorithms used by rsync are
Since i am not into these things it looks like if i use both of them my website Speed Tips:Remove Last-Modified Header ·PHP htaccess tips and tricks www.askapache.com/;speed-up-your-site-with-caching-and-cache-control.html
This doesn't have much effect on performance if the server isn't restarted frequently. on the client side since all major browsers support these methods. . Speed Tips:Turn On Compression ·Speed Tips:Remove Last-Modified Header
If you've read any other articles on AskApache, you can see a certain obsession towards optimization, . And are they modified/customized by you guys in any way? it would be very helpful since shared hosting is still popular
There are a total of 57 HTTP Status Codes recognized by the Apache Web Server. Wouldn’t you like to see what all those headers and their output, ErrorDocuments look like?
Tags: 301 Redirect, 302 Redirect, 401, 403 Forbidden, 404 Not Found, 500, 503, admin, Advanced, Apache, askapache, authorization, Bandwidth, curl, Dig, error log, errordocument, Flash, Forms, GET, Google, Htaccess, HTTP Error, HTTP Headers, HTTP Status Codes, httpd, HTTPS SSL, If-Modified-Since, password, Perl, PHP, phpBB, Port, post, ram, Redirect, Redirection, Request Method, Security, SEO, server, servers, Sniffing, Source Code, SSI, stat, tutorial, Wget, Wireshark, WordPress
Posted in Apache, Apache Modules, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, PHP, Server Administration, Web Hosting, Webmaster, WiredTree | Published on 01/04/2010 |22 Comments »
Web Developers sometimes use file.ext?v=004 as a version control system to force visitors to use updated files. This is terrible. Instead link to apache-003.css and set it to be cached forever. When you change the file you just change the links to apache-004.css. That eliminates millions of bandwidth and resource robbing If-Modified-Since requests. You only need Apache with mod_rewrite, and 1-10 minutes!
Tags: Apache, askapache, Bandwidth, Cache, Cache-Control, caching, Cookies, CSS, GET, Htaccess, HTTP Headers, httpd, httpd.conf, If-Modified-Since, Javascript, Last-Modified, Mod_Rewrite, Redirect, Rewrite Tricks, rewritecond, rewriterule, server, Source Code, SPEED, stat, trick
Posted in Apache, CSS, Cache, DreamHost, Featured, Htaccess, Mod_Rewrite, SEO, Security, Server Administration, Web Design, Web Hosting, Webmaster, XHTML | Published on 08/30/2009 |2 Comments »
Skip this – still under edit
I discovered these tips and tricks mostly while working as a network security penetration specialist hired to find security holes in web hosting environments. Shared hosting is the most common and cheapest form of web-hosting where multiple customers are placed on a single machine and “share” the resources (CPU/RAM/SPACE). The machines are configured to basically ONLY do HTTP and FTP. No shells or any interactive logins, no ssh, just FTP access. That is when I started examining htaccess files in great detail and learned about the incredible untapped power of htaccess. For 99% of the worlds best Apache admins, they don’t use .htaccess much, if AT ALL. It’s much easier, safer, and faster to configure Apache using the httpd.conf file instead. However, this file is almost never readable on shared-hosts, and I’ve never seen it writable. So the only avenue left for those on shared-hosting was and is the .htaccess file, and holy freaking fiber-optics.. it’s almost as powerful as httpd.conf itself!
Most all .htaccess code works in the httpd.conf file, but not all httpd.conf code works in .htaccess files, around 50%. So all the best Apache admins and programmers never used .htaccess files. There was no incentive for those with access to httpd.conf to use htaccess, and the gap grew. It’s common to see “computer gurus” on forums and mailing lists rail against all uses and users of .htaccess files, smugly announcing the well known problems with .htaccess files compared with httpd.conf – I wonder if these “gurus” know the history of the htaccess file, like it’s use in the earliest versions of the HTTP Server- NCSA’s HTTPd, which BTW, became known as Apache HTTP. So you could easily say that htaccess files predates Apache itself.
Once I discovered what .htaccess files could do towards helping me enumerate and exploit security vulnerabilities even on big shared-hosts I focused all my research into .htaccess files, meaning I was reading the venerable Apache HTTP Source code 24/7! I compiled every released version of the Apache Web Server, ever, even NCSA’s, and focused on enumerating the most powerful htaccess directives. Good times! Because my focus was on protocol/file/network vulnerabilites instead of web dev I built up a nice toolbox of htaccess tricks to do unusual things. When I switched over to webdev in 2005 I started using htaccess for websites, not research. I documented most of my favorites and rewrote the htaccess guide for webdevelopers. After some great encouragement on various forums and nets I decided to start a blog to share my work with everyone, AskApache.com was registered, I published my guide, and it was quickly plagiarized and scraped all over the net. Information is freedom, and freedom is information, so this blog has the least restrictive copyright for you. Feel free to modify, copy, republish, sell, or use anything on this site ;)
Tags: .htaccess examples, 301 Redirect, 302 Redirect, 401, 403 Forbidden, 404 Not Found, 500, 503, admin, Advanced, Apache, Apache Htaccess, apache ssl, askapache, ASP, authorization, Backups, Bandwidth, bash, Blocking, Boot, Cache, Cache-Control, caching, cheatsheet, chmod, code snippets, compression, Cookies, CSS, debugging, DreamHost, Email, error log, errordocument, Etags, Examples, experiments, feed, FeedBurner, File System, FilesMatch, filesystem, Firefox, Flash, Forms, GET, Google, Hacking, hotlinking, HowTo, Htaccess, htaccess files, htaccess guide, htaccess rewrite, htaccess tricks, htaccess tutorial, Htpasswd, HTTP Error, HTTP Headers, HTTP-EQUIV, httpd, httpd.conf, HTTPS SSL, hyper text transfer protocol, If-Modified-Since, Javascript, Last-Modified, Linux, Login, Logs, mad skills, mod_include, mod_python, Mod_Rewrite, Mod_Rewrite examples, Mod_Security, Mod_Setenvif, mysql, Nice, nsa, password, password protection, PDF, Performance, Perl, PHP, php.ini, phpinfo, Port, post, Powweb, Prompt, Python, ram, Redirect, Redirection, Request Method, Rewrite Tricks, rewritecond, rewriterule, Robot, robots, Sample .htaccess, Scripts, Security, SEO, seo secrets, server, server config, servers, SetEnvIf, Shell, Socket, Source Code, SPEED, SSH, SSI, stat, SymLinks, trick, tutorial, ultimate htaccess, Username, Web Hosting, WordPress
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Google, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, SEO, Security, Web Design, Web Hosting, Web Tools, Webmaster, WordPress | Published on 01/10/2009 |66 Comments »
If you examine the preferences dialog of any modern Web browser (like Internet Explorer, Safari or Mozilla), you’ll probably notice a ‘cache’ setting. This lets you set aside a section of your computer’s hard disk to store representations that you’ve seen, just for you. The browser cache works according to fairly simple rules. It will check to make sure that the representations are fresh, usually once a session (that is, the once in the current invocation of the browser).
Tags: admin, Apache, askapache, ASP, Bandwidth, Cache, Cache-Control, caching, ColdFusion, Cookies, DNS, Etags, Examples, expires header, Firefox, GET, Google, Htaccess, htaccess files, HTTP Headers, httpd, HTTPS SSL, If-Modified-Since, Last-Modified, Linux, Login, password, Performance, Perl, PHP, Port, post, Python, ram, Redirect, Scripts, Security, server, servers, SPEED, SSI, stat, tutorial, Username, Web Hosting
Posted in Cache, Htaccess | Published on 01/02/2007 |1 Comment »
2 awesome ways to implement caching on your website using Apache .htaccess or httpd.conf. Both methods are extremely simple to set up and will dramatically speed up your site!
Tags: 301 Redirect, 302 Redirect, 401, 500, 503, Accessibility, admin, Apache, askapache, ASP, authorization, Backups, Bandwidth, Cache, Cache Validation, Cache-Control, caching, cheatsheet, ColdFusion, compression, console, Cookies, CSS, debugging, Dig, error log, Etags, Examples, expires header, feed, File System, FilesMatch, Flash, Forms, GET, Htaccess, htaccess files, HTTP Headers, HTTP Status Codes, httpd, httpd.conf, HTTPS SSL, If-Modified-Since, Javascript, Last-Modified, Linux, Logs, Mod_Rewrite, nsa, Optimization, PDF, Performance, Perl, PHP, Port, post, Powweb, Prompt, ram, Redirect, Redirection, Request Method, Rewrite Tricks, rewritecond, rewriterule, Robot, robots, robots.txt, Scripts, Security, server, server config, servers, SPEED, SSI, stat, SymLinks, tutorial, Web Hosting, WordPress, WordPress Speed
Posted in Apache, Htaccess | Published on 12/05/2006 |13 Comments »