정말 기능이 매우 특색있는 프로그램을 찾고 있습니다. 희망적으로 존재하기 때문에 직접 구현할 필요가 없습니다. 이 가상의 프로그램을 작업 디렉토리에있는 문서 압축 된 파일 시스템 캐시로 가장 잘 설명 할 수 있습니다. 나는이 프로그램이 할 무엇을 기대의 모형을 제작했습니다파일 시스템 기반 압축 캐시 - 이것이 있습니까?
[email protected]:~/htdocs/$ tree -a
.
|-- image.png
`-- index.html
0 directories, 2 files
[email protected]:~/htdocs/$ zipcache init
Initialized cache in ./.zipcache/
[email protected]:~/htdocs/$ tree -a
.
|-- .zipcache
| |-- gzip
| | `-- index.html.gz
| `-- lzma
| `-- index.html.lzma
|-- image.png
`-- index.html
1 directory, 3 files
[email protected]:~/htdocs/$ zipcache gzip index.html
... zipcache emits gzipped copy of index.html on stdout by cat-ing ./.zipcache/gzip/index.html.gz
[email protected]:~/htdocs/$ zipcache lzma index.html
... zipcache emits lzma'd copy of index.html on stdout by cat-ing ./.zipcache/lzma/index.html.gz
[email protected]:~/htdocs/$ zipcache lzma image.png
... zipcache generates error signifying cache miss (it's intelligent enough to know that PNG shouldn't be further zipped) ...
내 궁극적 인 관심사는 반복적으로 사용할 수 컨텐트 인코딩으로 HTTP를 통해 전송되는 정적 파일의 압축 된 복사본을 캐싱. 파일을 요청할 때마다 압축을 계산할 의사가 없습니다.
내가 모르는 위의 기능에 대한 용어가있을 수 있습니다. Google 검색 결과가 매우 성공적이지 않은 경우에도 올바른 방향으로 가리켜 주시면 감사하겠습니다.