Re: Need a tool to minimize HTML before storing in memecache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://php.net/manual/en/book.tidy.php

- Joseph Moniz
(510) 509-0775 | @josephmoniz <https://twitter.com/josephmoniz> |
GitHub<https://github.com/JosephMoniz> |
 LinkedIn <http://www.linkedin.com/pub/joseph-moniz/13/949/b54/> |
Blog<http://josephmoniz.github.io/>
 | CoderWall <https://coderwall.com/josephmoniz>

"Wake up early, Stay up late, Change the world"


On Wed, Apr 17, 2013 at 2:52 PM, Daevid Vincent <daevid@xxxxxxxxxx> wrote:

> We do a lot with caching and storing in memecached as well as local copies
> so as to not hit the cache pool over the network and we have found some
> great tools to minimize our javascript and our css, and now we'd like to
> compress our HTML in these cache slabs.
>
>
>
> Anyone know of a good tool or even regex magic that I can call from PHP to
> compress/minimize the giant string web page before I store it in the cache?
>
>
>
> It's not quite as simple as stripping white space b/c obviously there are
> spaces between attributes in tags that need to be preserved, but also in
> the
> words/text on the page. I could strip out newlines I suppose, but then do I
> run into any issues in other ways? In any event, it seems like someone
> would
> have solved this by now before I go re-inventing the wheel.
>
>
>
> d.
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux