Search Results
Apr 15, 2010 Removing the Last-Modified Header from your served files can increase the speed of your Web Site.
It stands to reason that crawlers would record the last-modified time to display time-based results, so how do they look upon pages that don't have any of www.askapache.com/;using-last-modified-etag-mod_expires-mod_headers-to-seo-phpbb.html
Oct 20, 2008 It can be validated with Last-Modified. This object requests that a Cookie be set;this makes it and other pages affected automatically
Dec 12, 2006 Please don't turn off ETags and Last-Modified headers for your .html files, leave one of them ON. (I use Last-Modified for .html).
Apr 15, 2010 You can also add the must-revalidate header to force checking the ETag and or Last-Modified for the file to make sure the cache is using the
for my AskApache CrazyCache plugin which I will be releasing last So for all .. Turn Off ETags ·Remove LastModified Header ·Use Multiple SubDomains
To use the function, work out the timestamp for when the document was last modified and call the function with:conditionalGET($timestamp);
(xml|txt)$">Header set Cache-Control "max-age=172800, public, must-revalidate"Header unset Pragma Header unset Last-Modified Header unset ETag FileETag
Apr 15, 2010 Speed Tips:Add Future Expires HeadersSpeed Tips:Remove Last-Modified Header » [] Ela ~. Please can you explain me how to setup this
Last-Modified, The last modified date for the requested object, Last-Modified:Sat, 05 Jan 2008 09:26:12 GMT. Location, Used in redirection
Mar 20, 2007 In the past year urchin.js has only been updated once, yet the Last-Modified header reflects an updated date every request.. not even in a
The google-analytics.com servers are configured to return a random Last-Modified date EVERY single time a browser requests
Header set Cache-Control "max-age=86400, public"Header set Expires "Thu, 8 May 2010 20:00:00 GMT"Header unset Last-Modified # Header set Cache-Control
gif$">Header unset Expires Header unset Last-Modified FileETag None Header set Cache-Control "no-cache, must-revalidate"</FilesMatch>
CONFIGURE media caching Header unset ETag FileETag NoneFilesMatchi^*ico|flv|jpg|jpeg|png|gif|js|css Header unset LastModified Header set ExpiresFri 21 Dec
Turn On Compression ·Add Future Expires Header ·Add Cache-Control Headers ·Turn Off ETags ·Remove Last-Modified Header www.askapache.com/;speed-up-your-site-with-caching-and-cache-control.html
ap_remove_output_filter(cache->remove_url_filter);/* * We now want to update the cache file header information with * the new date, last modified,
Last-Modified:Mon, 20 Feb 2006 05:52:15 GMT ETag:"1aa1fe1-36fa1".. If a resource was served with a “Last-Modified:” header it is possible to make a
Speed Tips:Remove Last-Modified Header ·Multiply your DreamHost Referrals ·Lets win the DreamHost Contest ·What I think about DreamHost Web Hosting
Apr 15, 2010 15 Apr 2010 20:00:00 GMT"Header unset Last-Modified Header unset Last-Modified Header unset ETag SetOutputFilter DEFLATE Header set
Most modern Web servers will generate both ETag and Last-Modified headers . Many Web browsers let you see the Expires and Last-Modified headers are in a
http://www.askapache.com/ Authorization:Basic adfAGAltcA== HTTP/1.1 200 OK Date:Wed, 22 Jul 2009 06:29:58 GMT Server:Apache Last-Modified:Wed,
Well, the situation I described at Dreamhost took place last year when they did Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires
05 Nov 2003 16:46:04 GMT Last-Modified:Tue, 12 May 1998 22:18:49 GMT ETag:"3558cac9;36f99e2b"Accept-Ranges:bytes Content-Length:10734 Connection:
http.last_modified String Last-Modified;http.location String Location;http.notification Boolean Notification;http.proxy_authenticate String Proxy- www.askapache.com/;sniff-http-to-debug-apache-htaccess-and-httpdconf.html
Some web developers have modified .htaccess to perform custom tasks server-side PHP htaccess tips and tricks ·Speed Tips:Remove Last-Modified Header
header("Last-Modified:". gmdate("D, d M Y H:i:s") . "GMT");header("Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
millions of bandwidth and resource robbing IfModifiedSince requests . Speed Tips Remove LastModified Header Removing the LastModified Header from
Basically Ryan you remove validation information (last-modified, etags, content-md5) for your files you want to cache in this way, and then you specify a
To reiterate that point:if the files are modified *in place* without restarting . mod_time);} apr_table_setn(r->headers_out, "Last-Modified", datestr);
set var="modified"value="$LAST_MODIFIED"--><! flastmod:Prints the last modification date of the specified file, subject to the timefmt format
This is the last step in this guide, and was the one thing that . Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Cache-Control Headers
a basename (last component of filename) matching the specified filename. . Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires
suffixes which can be modified by AddType and DefaultType directives and .. Header unset LastModifiedFilesMatch2 hoursFilesMatchhtml|htm|xml|txt|xsl
e->length = (apr_size_t)fsize; } else { e .. "Last-Modified", NULL } ;static const struct { const char* name;
"Last-Modified");apr_table_addn(r->headers_out, "Cache-Control", "no-cache") .. go one last time * through the chain, and prune out the NULL filters
Turn On Compression ·Add Future Expires Header ·Add Cache-Control Headers ·Turn Off ETags ·Remove Last-Modified Header ·Use Multiple SubDomains
HTTP/1.1 200 OK (other headers) Status:304 Not Modified 11 Jan 1984 05:00:00 GMT');@ header('Last-Modified:'. gmdate('D, d M Y H:i:s') .
Fixing file permissions automatically;Searching for modified files on the server In fact just last night I was once again doing some research into some
Htaccess SEO Trends by Google ·htaccess Tricks for Webmasters ·Speed Tips:Turn On Compression ·Speed Tips:Remove Last-Modified Header
might have Last-Modified values w/o ETags, so this gets a little. * complicated. */. if (!ap_is_HTTP_SUCCESS(r->status) || r->no_local_copy) { return OK;
Sep 30, 2008 I think you need to replace the last bit in crontab command with Speed Tips:Remove Last-Modified Header ·Speed up your site with www.askapache.com/;serve-external-javascript-files-locally-for-increased-speed.html
Sep 22, 2007 Turn On Compression ·Add Future Expires Header ·Add CacheControl Headers ·Turn Off ETags ·Remove LastModified Header ·Use Multiple SubDomains
Modified wp_cache_is_rejected function Online CSS Compression Tools ·Speed Tips:Add Future Expires Headers ·Speed Tips:Remove Last-Modified Header
Apache HTTPD Google CSE ·Rewrite underscores to hyphens for SEO URL ·Speed Tips:Remove Last-Modified Header ·Make phpBB SEO friendly with htaccess
Debug apache log files from php ·PHP htaccess tips and tricks ·Speed Tips Remove LastModified Header ·Rewrite underscores to hyphens for SEO URL
Apache HTTPD Google CSE ·PHP htaccess tips and tricks ·Speed Tips Remove LastModified Header ·Rewrite underscores to hyphens for SEO URL
curl_error - Return a string containing the last error for the current . If it hasn't been modified, a "304 Not Modified"header will be returned
above the last one set the environment # variable ASKAPACHE_PDFS to have the . Speed Tips:Remove Last-Modified Header ·PHP htaccess tips and tricks
Speed Tips:Remove Last-Modified Header ·Elite Log File Scrolling with Color Syntax ·Updated:WordPress RewriteRules Viewer Plugin www.askapache.com/;htaccess-trick-to-show-alternate-css-file-based-on-ip.html
#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin|wp-login\.php).*$ [NC,OR]
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond's, this won't break poorly written admin scripts
RewriteRule .* - [S=1]
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-admin/.*|wp-login\.php.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Tags: AddHandler, Apache, Backups, Block IP, Cache-Control, cheatsheets, developers, errordocument, etag, htaccess tricks, http cookie, indexes, Mod_Security, open source, password protection, real world, rewritecond, rewriterule, Source Code
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, SEO, Security, Server Administration, Web Hosting, Webmaster | Published on 04/17/2010 |4 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 »
Use the Apache module mod_deflate to compress your static .css and .js files, speeding your site up like crazy!
Tags: Apache, askapache, Bandwidth, Cache, Cache-Control, caching, compression, CSS, Etags, expires header, FilesMatch, GET, Htaccess, HTTP Headers, httpd, httpd.conf, HTTPS SSL, Last-Modified, Performance, SPEED, SSI, stat
Posted in Apache, Cache, DreamHost, Htaccess | Published on 09/05/2007 |19 Comments »